@@ -42,14 +42,14 @@ size_t size(const std::filesystem::path& file_path) NOEXCEPT
4242 // returns max_size_t on error.
4343 code ec;
4444 return system::possible_narrow_and_sign_cast<size_t >(
45- std::filesystem::file_size (system::to_extended_path (file_path), ec));
45+ std::filesystem::file_size (system::extended_path (file_path), ec));
4646}
4747
4848bool exists (const std::filesystem::path& file_path) NOEXCEPT
4949{
5050 // Returns true only if file existed.
5151 BC_PUSH_WARNING (NO_THROW_IN_NOEXCEPT)
52- std::ifstream file (system::to_extended_path (file_path));
52+ std::ifstream file (system::extended_path (file_path));
5353 const auto good = file.good ();
5454 file.close ();
5555 BC_POP_WARNING ()
@@ -60,15 +60,15 @@ bool remove(const std::filesystem::path& file_path) NOEXCEPT
6060{
6161 // Deletes and returns false if file did not exist (or error).
6262 code ec;
63- return std::filesystem::remove (system::to_extended_path (file_path), ec);
63+ return std::filesystem::remove (system::extended_path (file_path), ec);
6464}
6565
6666bool clear (const std::filesystem::path& directory) NOEXCEPT
6767{
6868 // remove_all returns count removed, and error code if fails.
6969 // create_directories returns true if path exists or created.
7070 // used for setup, with no expectations of file/directory existence.
71- const auto path = system::to_extended_path (directory);
71+ const auto path = system::extended_path (directory);
7272 code ec;
7373 BC_PUSH_WARNING (NO_THROW_IN_NOEXCEPT)
7474 std::filesystem::remove_all (path, ec);
@@ -78,7 +78,7 @@ bool clear(const std::filesystem::path& directory) NOEXCEPT
7878
7979bool folder (const std::filesystem::path& directory) NOEXCEPT
8080{
81- const auto path = system::to_extended_path (directory);
81+ const auto path = system::extended_path (directory);
8282 code ec;
8383 BC_PUSH_WARNING (NO_THROW_IN_NOEXCEPT)
8484 return !ec && std::filesystem::is_directory (path, ec);
@@ -89,7 +89,7 @@ bool create(const std::filesystem::path& file_path) NOEXCEPT
8989{
9090 // Creates and returns true if file existed or not (and no error).
9191 BC_PUSH_WARNING (NO_THROW_IN_NOEXCEPT)
92- std::ofstream file (system::to_extended_path (file_path));
92+ std::ofstream file (system::extended_path (file_path));
9393 const auto good = file.good ();
9494 file.close ();
9595 BC_POP_WARNING ()
@@ -112,7 +112,7 @@ std::string read_line(const std::filesystem::path& file_path,
112112 size_t line) NOEXCEPT
113113{
114114 std::string out{};
115- std::ifstream file (system::to_extended_path (file_path));
115+ std::ifstream file (system::extended_path (file_path));
116116 do { out.clear (); std::getline (file, out); } while (is_nonzero (line--));
117117 return out;
118118}
0 commit comments