The FileStatus class.
More...
#include <file.hxx>
◆ Type
Enumerator |
---|
Directory | |
Volume | |
Regular | |
Fifo | |
Socket | |
Link | |
Special | |
Unknown | |
◆ FileStatus()
osl::FileStatus::FileStatus |
( |
sal_uInt32 |
nMask | ) |
|
|
inline |
Constructor.
- Parameters
-
nMask | Set of flags describing the demanded information. |
◆ ~FileStatus()
osl::FileStatus::~FileStatus |
( |
| ) |
|
|
inline |
◆ getAccessTime()
TimeValue osl::FileStatus::getAccessTime |
( |
| ) |
const |
|
inline |
Get the file access time.
- Returns
- The last access time if this information is valid, an uninitialized TimeValue otherwise.
◆ getAttributes()
sal_uInt64 osl::FileStatus::getAttributes |
( |
| ) |
const |
|
inline |
Get the file attributes.
- Returns
- The set of attribute flags of this file.
◆ getCreationTime()
TimeValue osl::FileStatus::getCreationTime |
( |
| ) |
const |
|
inline |
Get the creation time of this file.
- Returns
- The creation time if this information is valid, an uninitialized TimeValue otherwise.
◆ getFileName()
Get the file name.
- Returns
- The file name if this information is valid, an empty string otherwise.
◆ getFileSize()
sal_uInt64 osl::FileStatus::getFileSize |
( |
| ) |
const |
|
inline |
Get the size of the file.
- Returns
- The actual file size if this information is valid, 0 otherwise.
◆ getFileType()
Type osl::FileStatus::getFileType |
( |
| ) |
const |
|
inline |
Get the file type.
- Returns
- The file type.
◆ getFileURL()
Get the URL of the file.
- Returns
- The full qualified URL of the file if this information is valid, an empty string otherwise.
◆ getLinkTargetURL()
Get the link target URL.
- Returns
- The link target URL if this information is valid, an empty string otherwise.
◆ getModifyTime()
TimeValue osl::FileStatus::getModifyTime |
( |
| ) |
const |
|
inline |
Get the file modification time.
- Returns
- The last modified time if this information is valid, an uninitialized TimeValue otherwise.
◆ isDirectory()
bool osl::FileStatus::isDirectory |
( |
| ) |
const |
|
inline |
Is it a directory? This method returns True for both directories, and volumes.
- Returns
- True if it's a directory, False otherwise.
- See also
- getFileType
- Since
- LibreOffice 3.6
◆ isLink()
bool osl::FileStatus::isLink |
( |
| ) |
const |
|
inline |
Is it a link?
- Returns
- True if it's a link, False otherwise.
- See also
- getFileType
- Since
- LibreOffice 3.6
◆ isRegular()
bool osl::FileStatus::isRegular |
( |
| ) |
const |
|
inline |
Is it a regular file?
- Returns
- True if it's a regular file, False otherwise.
- See also
- getFileType
-
isFile
-
isLink
- Since
- LibreOffice 3.6
◆ isValid()
bool osl::FileStatus::isValid |
( |
sal_uInt32 |
nMask | ) |
const |
|
inline |
Check if specified fields are valid.
- Parameters
-
nMask | Set of flags for the fields to check. |
- Returns
- true if all fields are valid else false.
◆ DirectoryItem
The documentation for this class was generated from the following file: