diff --git a/main.cpp b/main.cpp index fddb886..d4d6e5f 100644 --- a/main.cpp +++ b/main.cpp @@ -133,7 +133,8 @@ long long get_file_timestamp(const std::string& strPath) if (strPath.empty()) { return 0; - } + } + fs::path path(strPath); str = path.filename().string(); auto strTime = str.substr(0, 15); std::remove(strTime.begin(), strTime.end(), '_');