class PFileInfo

Class containing the system information on a file path.

Inheritance:


Public Fields

[more]FileTypes type
File type for this file.
[more]PTime created
Time of file creation of the file.
[more]PTime modified
Time of last modifiaction of the file
[more]PTime accessed
Time of last access to the file.
[more]PUInt64 size
Size of the file in bytes.
[more]int permissions
A bit mask of all the file acces permissions.
[more]BOOL hidden
File is a hidden file.

Public Members

[more]enum FileTypes
All types that a particular file path may be.
[more]enum Permissions
File access permissions for the file


Inherited from PObject:

Public Methods

Run Time Type functions

I/O functions

Miscellaneous functions

Public Members

Comparison functions


Documentation

Class containing the system information on a file path. Information can be obtained on any directory entry event if it is not a "file" in the strictest sense. Sub-directories, devices etc may also have information retrieved.
oenum FileTypes
All types that a particular file path may be. Not all platforms support all of the file types. For example under DOS no file may be of the type SymbolicLink.

o RegularFile
Ordinary disk file

o SymbolicLink
File path is a symbolic link

o SubDirectory
File path is a sub-directory

o CharDevice
File path is a character device name

o BlockDevice
File path is a block device name

o Fifo
File path is a fifo (pipe) device

o SocketDevice
File path is a socket device

o UnknownFileType
File path is of an unknown type

o AllFiles
Mask for all file types

oFileTypes type
File type for this file. Only one bit is set at a time here.

oPTime created
Time of file creation of the file. Not all platforms support a separate creation time in which case the last modified time is returned.

oPTime modified
Time of last modifiaction of the file

oPTime accessed
Time of last access to the file. Not all platforms support a separate access time in which case the last modified time is returned.

oPUInt64 size
Size of the file in bytes. This is a quadword or 8 byte value to allow for files greater than 4 gigabytes.

oenum Permissions
File access permissions for the file

o WorldExecute
File has world execute permission

o WorldWrite
File has world write permission

o WorldRead
File has world read permission

o GroupExecute
File has group execute permission

o GroupWrite
File has group write permission

o GroupRead
File has group read permission

o UserExecute
File has owner execute permission

o UserWrite
File has owner write permission

o UserRead
File has owner read permission

o AllPermissions
All possible permissions

o DefaultPerms
Owner read & write plus group and world read permissions

o DefaultDirPerms
Owner read & write & execute plus group and world read & exectute permissions

oint permissions
A bit mask of all the file acces permissions. See the Permissions enum for the possible bit values.

Not all platforms support all permissions.

oBOOL hidden
File is a hidden file. What constitutes a hidden file is platform dependent, for example under unix it is a file beginning with a '.' character while under MS-DOS there is a file system attribute for it.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.