|
LibreOffice
LibreOffice 26.2 SDK C/C++ API Reference
|
The FileStatus class. More...
#include <file.hxx>
Public Types | |
| enum | Type { Directory = osl_File_Type_Directory , Volume = osl_File_Type_Volume , Regular = osl_File_Type_Regular , Fifo = osl_File_Type_Fifo , Socket = osl_File_Type_Socket , Link = osl_File_Type_Link , Special = osl_File_Type_Special , Unknown = osl_File_Type_Unknown } |
Public Member Functions | |
| FileStatus (sal_uInt32 nMask) | |
| Constructor. | |
| ~FileStatus () | |
| Destructor. | |
| bool | isValid (sal_uInt32 nMask) const |
| Check if specified fields are valid. | |
| Type | getFileType () const |
| Get the file type. | |
| bool | isDirectory () const |
| Is it a directory? | |
| bool | isRegular () const |
| Is it a regular file? | |
| bool | isLink () const |
| Is it a link? | |
| sal_uInt64 | getAttributes () const |
| Get the file attributes. | |
| TimeValue | getCreationTime () const |
| Get the creation time of this file. | |
| TimeValue | getAccessTime () const |
| Get the file access time. | |
| TimeValue | getModifyTime () const |
| Get the file modification time. | |
| sal_uInt64 | getFileSize () const |
| Get the size of the file. | |
| ::rtl::OUString | getFileName () const |
| Get the file name. | |
| ::rtl::OUString | getFileURL () const |
| Get the URL of the file. | |
| ::rtl::OUString | getLinkTargetURL () const |
| Get the link target URL. | |
Friends | |
| class | DirectoryItem |
The FileStatus class.
|
inline |
Constructor.
| nMask | Set of flags describing the demanded information. |
|
inline |
Destructor.
|
inline |
Get the file access time.
|
inline |
Get the file attributes.
|
inline |
Get the creation time of this file.
|
inline |
Get the file name.
|
inline |
Get the size of the file.
|
inline |
Get the file type.
|
inline |
Get the URL of the file.
|
inline |
Get the link target URL.
|
inline |
Get the file modification time.
|
inline |
Is it a directory?
This method returns True for both directories, and volumes.
|
inline |
|
inline |
Is it a regular file?
|
inline |
Check if specified fields are valid.
| nMask | Set of flags for the fields to check. |
|
friend |