diff options
| -rw-r--r-- | zen/cmds/run.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zen/cmds/run.cpp b/zen/cmds/run.cpp index 8299c981a..a5a372210 100644 --- a/zen/cmds/run.cpp +++ b/zen/cmds/run.cpp @@ -85,7 +85,7 @@ RunCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) zen::ScanFile(FullPath, 64 * 1024, [&](const void* Data, size_t Size) { Ios.Append(Data, Size); }); zen::IoHash Hash = Ios.GetHash(); - std::wstring RelativePath = FullPath.lexically_relative(m_RootPath).native(); + path_string RelativePath = FullPath.lexically_relative(m_RootPath).native(); // ZEN_INFO("File: {:32} => {} ({})", zen::WideToUtf8(RelativePath), Hash, FileSize); FileEntry& Entry = m_Files[RelativePath]; @@ -95,11 +95,11 @@ RunCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) m_HashToFile[Hash] = FullPath; } - virtual bool VisitDirectory(const std::filesystem::path& Parent, const std::wstring_view& DirectoryName) override + virtual bool VisitDirectory(const std::filesystem::path& Parent, const path_view& DirectoryName) override { std::filesystem::path FullPath = Parent / DirectoryName; - if (DirectoryName.starts_with(L".")) + if (DirectoryName.starts_with('.')) { return false; } @@ -113,7 +113,7 @@ RunCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) zen::IoHash Hash; }; - std::map<std::wstring, FileEntry> m_Files; + std::map<path_string, FileEntry> m_Files; std::unordered_map<zen::IoHash, std::filesystem::path, zen::IoHash::Hasher> m_HashToFile; }; |