add io::last_write_time & add io::write_zip
This commit is contained in:
@@ -142,6 +142,10 @@ namespace io {
|
||||
bool compressed = false
|
||||
);
|
||||
|
||||
/// @brief Open file for writing
|
||||
/// @throw std::runtime_error if file cannot be opened
|
||||
std::unique_ptr<std::ostream> write(const io::path& file);
|
||||
|
||||
/// @brief Open file for reading
|
||||
/// @throw std::runtime_error if file cannot be opened
|
||||
std::unique_ptr<std::istream> read(const io::path& file);
|
||||
@@ -202,6 +206,9 @@ namespace io {
|
||||
/// @brief Get file size in bytes
|
||||
size_t file_size(const io::path& file);
|
||||
|
||||
/// @brief Get file last write time timestamp
|
||||
file_time_type last_write_time(const io::path& file);
|
||||
|
||||
std::filesystem::path resolve(const io::path& file);
|
||||
|
||||
/// @brief Check if file is one of the supported data interchange formats
|
||||
|
||||
Reference in New Issue
Block a user