mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add io::last_write_time & add io::write_zip
This commit is contained in:
parent
edb581bee3
commit
57d05bde57
8 changed files with 197 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue