Skip to content

Commit 7e4ac6b

Browse files
committed
fix rest of pathtostring usages
1 parent d7cc593 commit 7e4ac6b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

loader/src/utils/file.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ class Zip::Impl final {
394394
})
395395
);
396396

397-
auto namestr = pathToString(name);
397+
auto namestr = utils::string::pathToString(name);
398398

399399
GEODE_UNWRAP(
400400
mzTry(mz_zip_locate_entry(
@@ -461,7 +461,7 @@ class Zip::Impl final {
461461
}
462462

463463
Result<> add(Path const& path, ByteVector const& data) {
464-
auto namestr = pathToString(path);
464+
auto namestr = utils::string::pathToString(path);
465465

466466
mz_zip_file info = { 0 };
467467
info.version_madeby = MZ_VERSION_MADEBY;
@@ -560,20 +560,20 @@ bool Unzip::hasEntry(Path const& name) {
560560

561561
Result<ByteVector> Unzip::extract(Path const& name) {
562562
return m_impl->extract(name).mapErr([&](auto error) {
563-
return fmt::format("Unable to extract entry {}: {}", pathToString(name), error);
563+
return fmt::format("Unable to extract entry {}: {}", utils::string::pathToString(name), error);
564564
});
565565
}
566566

567567
Result<> Unzip::extractTo(Path const& name, Path const& path) {
568568
GEODE_UNWRAP_INTO(auto bytes, m_impl->extract(name).mapErr([&](auto error) {
569-
return fmt::format("Unable to extract entry {}: {}", pathToString(name), error);
569+
return fmt::format("Unable to extract entry {}: {}", utils::string::pathToString(name), error);
570570
}));
571571
// create containing directories for target path
572572
if (path.has_parent_path()) {
573573
GEODE_UNWRAP(file::createDirectoryAll(path.parent_path()));
574574
}
575575
GEODE_UNWRAP(file::writeBinary(path, bytes).mapErr([&](auto error) {
576-
return fmt::format("Unable to write file {}: {}", pathToString(path), error);
576+
return fmt::format("Unable to write file {}: {}", utils::string::pathToString(path), error);
577577
}));
578578
return Ok();
579579
}

0 commit comments

Comments
 (0)