Information about a file.
More...
#include <swoc_file.h>
Information about a file.
Definition at line 202 of file swoc_file.h.
◆ init()
| void swoc::file::file_status::init |
( |
| ) |
|
|
protected |
◆ mode()
| mode_t swoc::file::file_status::mode |
( |
| ) |
const |
|
inline |
- Returns
- raw file mode data.
Definition at line 500 of file swoc_file.h.
◆ type()
| enum file_type swoc::file::file_status::type |
( |
| ) |
const |
|
inline |
- Returns
- File type as an enumeration.
Definition at line 495 of file swoc_file.h.
◆ access_time
- Returns
- The access time for fs.
Definition at line 200 of file swoc_file.cc.
◆ exists
◆ file_size
Size of the file or block device.
Definition at line 112 of file swoc_file.cc.
◆ file_type
◆ is_block_device
Check if the path is to a block device.
Definition at line 510 of file swoc_file.h.
◆ is_char_device
Check if the path is to a character device.
Definition at line 505 of file swoc_file.h.
◆ is_dir
Check if the path is to a directory.
Definition at line 520 of file swoc_file.h.
◆ is_regular_file
Check if the path is to a regular file.
Definition at line 515 of file swoc_file.h.
◆ last_write_time
| file_time_type last_write_time |
( |
file_status const & | fs | ) |
|
|
friend |
- Returns
- The modified time for fs.
Definition at line 195 of file swoc_file.cc.
◆ status
Get the status of the file at p.
- Parameters
-
| file | Path to file. |
| ec | Error code return. |
- Returns
- Status of the file.
Definition at line 92 of file swoc_file.cc.
◆ status_time
- Returns
- The status change time for fs.
Definition at line 205 of file swoc_file.cc.
◆ _stat
| struct::stat swoc::file::file_status::_stat |
|
protected |
◆ _type
| file_type swoc::file::file_status::_type = file_type::none |
|
protected |
The documentation for this class was generated from the following files: