Changeset 8 for trunk/src/tools/qfileinfo.cpp
- Timestamp:
- Nov 16, 2005, 8:36:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tools/qfileinfo.cpp
r7 r8 64 64 A QFileInfo can point to a file with either a relative or an 65 65 absolute file path. Absolute file paths begin with the directory 66 separator "/" (or with a drive specification on Windows ). Relative66 separator "/" (or with a drive specification on Windows and OS/2). Relative 67 67 file names begin with a directory name or a file name and specify 68 68 a path relative to the current working directory. An example of an … … 130 130 rights of the current user, you should use isReadable(), isWritable() and 131 131 isExecutable(). 132 133 @@TODO: describe OS/2 semantics regarding permissions. 132 134 */ 133 135 … … 266 268 The \a file can also include an absolute or relative file path. 267 269 Absolute paths begin with the directory separator (e.g. "/" under 268 Unix) or a drive specification (under Windows ). Relative file270 Unix) or a drive specification (under Windows and OS/2). Relative file 269 271 names begin with a directory name or a file name and specify a 270 272 path relative to the current directory. … … 529 531 } 530 532 531 #if ndef Q_WS_WIN533 #if !defined(Q_WS_WIN) && !defined(Q_OS_OS2) 532 534 bool QFileInfo::isHidden() const 533 535 { … … 654 656 The absolute path name consists of the full path and the file 655 657 name. On Unix this will always begin with the root, '/', 656 directory. On Windows this will always begin 'D:/' where D is a658 directory. On Windows and OS/2 this will always begin 'D:/' where D is a 657 659 drive letter, except for network shares that are not mapped to a 658 660 drive letter, in which case the path will begin '//sharename/'. … … 672 674 QString tmp; 673 675 if ( QDir::isRelativePath(fn) 674 #if defined(Q_OS_WIN32) 676 #if defined(Q_OS_WIN32) || defined(Q_OS_OS2) 675 677 && fn[1] != ':' 676 678 #endif
Note:
See TracChangeset
for help on using the changeset viewer.