This commit is contained in:
2024-08-29 14:47:10 -05:00
parent 272d9a1502
commit 5910ed3dae
2 changed files with 8 additions and 12 deletions

View File

@ -52,7 +52,7 @@ struct file_times final {
return written;
}
throw std::runtime_error("type_type not supported") :
throw std::runtime_error("type_type not supported");
}
};
@ -71,11 +71,11 @@ file_exists_in_path(std::string_view path, std::string_view file_name) -> bool;
file_exists_in_path(std::wstring_view path,
std::wstring_view file_name) -> bool;
[[nodiscard]] auto get_time(std::string_view path, time_type type) const
-> std::optional<std::uint64_t>;
[[nodiscard]] auto get_time(std::string_view path,
time_type type) -> std::optional<std::uint64_t>;
[[nodiscard]] auto get_time(std::wstring_view path, time_type type) const
-> std::optional<std::uint64_t>;
[[nodiscard]] auto get_time(std::wstring_view path,
time_type type) -> std::optional<std::uint64_t>;
[[nodiscard]] auto
get_times(std::string_view path) -> std::optional<file_times>;