add io::last_write_time & add io::write_zip

This commit is contained in:
MihailRis
2025-02-25 02:03:01 +03:00
parent edb581bee3
commit 57d05bde57
8 changed files with 197 additions and 19 deletions
+7
View File
@@ -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