![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Statistics about a file or directory. More...
#include <FXStat.h>
Public Member Functions | |
| FXuint | mode () const |
| File size. | |
| FXuint | user () const |
| Return user number. | |
| FXuint | group () const |
| Return group number. | |
| FXuint | links () const |
| Return number of links to file. | |
| FXTime | created () const |
| Return time when file was created, in nanoseconds. | |
| FXTime | accessed () const |
| Return time when last accessed, in nanoseconds. | |
| FXTime | modified () const |
| Return time when last modified, in nanoseconds. | |
| FXlong | volume () const |
| Return file volume number. | |
| FXlong | index () const |
| Return file index number. | |
| FXlong | size () const |
| Return file size in bytes. | |
| FXbool | isHidden () const |
| Return true if it is a hidden file (Windows-only) | |
| FXbool | isDirectory () const |
| Return true if input path is a directory. | |
| FXbool | isFile () const |
| Return true if it is a regular file. | |
| FXbool | isLink () const |
| Return true if it is a link. | |
| FXbool | isSetUid () const |
| Return true if the file sets the user id on execution. | |
| FXbool | isSetGid () const |
| Return true if the file sets the group id on execution. | |
| FXbool | isSetSticky () const |
| Return true if the file has the sticky bit set. | |
| FXbool | isCharacter () const |
| Return true if character device. | |
| FXbool | isBlock () const |
| Return true if block device. | |
| FXbool | isSocket () const |
| Return true if socket device. | |
| FXbool | isFifo () const |
| Return true if fifo (pipe) device. | |
| FXbool | isReadable () const |
| Return true if file is readable. | |
| FXbool | isWritable () const |
| Return true if file is writable. | |
| FXbool | isExecutable () const |
| Return true if file is executable. | |
| FXbool | isOwnerReadWriteExecute () const |
| Return true if owner has read-write-execute permissions. | |
| FXbool | isOwnerReadable () const |
| Return true if owner has read permissions. | |
| FXbool | isOwnerWritable () const |
| Return true if owner has write permissions. | |
| FXbool | isOwnerExecutable () const |
| Return true if owner has execute permissions. | |
| FXbool | isGroupReadWriteExecute () const |
| Return true if group has read-write-execute permissions. | |
| FXbool | isGroupReadable () const |
| Return true if group has read permissions. | |
| FXbool | isGroupWritable () const |
| Return true if group has write permissions. | |
| FXbool | isGroupExecutable () const |
| Return true if group has execute permissions. | |
| FXbool | isOtherReadWriteExecute () const |
| Return true if others have read-write-execute permissions. | |
| FXbool | isOtherReadable () const |
| Return true if others have read permissions. | |
| FXbool | isOtherWritable () const |
| Return true if others have write permissions. | |
| FXbool | isOtherExecutable () const |
| Return true if others have execute permissions. | |
Static Public Member Functions | |
| static FXbool | statFile (const FXString &file, FXStat &info) |
| Get statistics of the file into the stat buffer info. | |
| static FXbool | statLink (const FXString &file, FXStat &info) |
| Get statistice of the link into the stat buffer info. | |
| static FXbool | stat (const FXFile &file, FXStat &info) |
| Get statistics of already open file into stat buffer info. | |
| static FXuint | mode (const FXString &file) |
| Return the mode flags for this file. | |
| static FXbool | mode (const FXString &file, FXuint perm) |
| Change the mode flags for this file. | |
| static FXbool | exists (const FXString &file) |
| Return true if file exists. | |
| static FXlong | size (const FXString &file) |
| Return file size in bytes. | |
| static FXlong | volume (const FXString &file) |
| Return file volume number. | |
| static FXlong | index (const FXString &file) |
| Return file index number. | |
| static FXuint | links (const FXString &file) |
| Return number of links to file. | |
| static FXTime | modified (const FXString &file) |
| Return last modified time for this file, on filesystems where this is supported. | |
| static FXTime | accessed (const FXString &file) |
| Return last accessed time for this file, on filesystems where this is supported, in nanoseconds since Epoch. | |
| static FXTime | created (const FXString &file) |
| Return created time for this file, on filesystems where this is supported. | |
| static FXbool | isHidden (const FXString &file) |
| Return true if file is hidden. | |
| static FXbool | isFile (const FXString &file) |
| Return true if input path is a file name. | |
| static FXbool | isLink (const FXString &file) |
| Return true if input path is a link. | |
| static FXbool | isDirectory (const FXString &file) |
| Return true if input path is a directory. | |
| static FXbool | isReadable (const FXString &file) |
| Return true if file is readable. | |
| static FXbool | isWritable (const FXString &file) |
| Return true if file is writable. | |
| static FXbool | isExecutable (const FXString &file) |
| Return true if file is executable. | |
| static FXbool | isOwnerReadWriteExecute (const FXString &file) |
| Return true if owner has read-write-execute permissions. | |
| static FXbool | isOwnerReadable (const FXString &file) |
| Return true if owner has read permissions. | |
| static FXbool | isOwnerWritable (const FXString &file) |
| Return true if owner has write permissions. | |
| static FXbool | isOwnerExecutable (const FXString &file) |
| Return true if owner has execute permissions. | |
| static FXbool | isGroupReadWriteExecute (const FXString &file) |
| Return true if group has read-write-execute permissions. | |
| static FXbool | isGroupReadable (const FXString &file) |
| Return true if group has read permissions. | |
| static FXbool | isGroupWritable (const FXString &file) |
| Return true if group has write permissions. | |
| static FXbool | isGroupExecutable (const FXString &file) |
| Return true if group has execute permissions. | |
| static FXbool | isOtherReadWriteExecute (const FXString &file) |
| Return true if others have read-write-execute permissions. | |
| static FXbool | isOtherReadable (const FXString &file) |
| Return true if others have read permissions. | |
| static FXbool | isOtherWritable (const FXString &file) |
| Return true if others have write permissions. | |
| static FXbool | isOtherExecutable (const FXString &file) |
| Return true if others have execute permissions. | |
| static FXbool | isSetUid (const FXString &file) |
| Return true if the file sets the user id on execution. | |
| static FXbool | isSetGid (const FXString &file) |
| Return true if the file sets the group id on execution. | |
| static FXbool | isSetSticky (const FXString &file) |
| Return true if the file has the sticky bit set. | |
| static FXbool | getTotalDiskSpace (const FXString &path, FXulong &space) |
| Obtain total amount of space on disk mounted at given path. | |
| static FXbool | getAvailableDiskSpace (const FXString &path, FXulong &space) |
| Obtain available amount of space on disk mounted at given path. | |
Statistics about a file or directory.
| static FXTime FX::FXStat::created | ( | const FXString & | file | ) | [static] |
Return created time for this file, on filesystems where this is supported.
This is also the time when ownership, permissions, links, and other meta-data may have changed, in nanoseconds since Epoch.
| FXuint FX::FXStat::mode | ( | ) | const [inline] |
File size.
Return the mode flags for this file
| static FXTime FX::FXStat::modified | ( | const FXString & | file | ) | [static] |
Return last modified time for this file, on filesystems where this is supported.
This is the time when any data in the file was last modified, in nanoseconds since Epoch.
|
|