From cba141d4d8a67e73397a839d78c0461a0c733791 Mon Sep 17 00:00:00 2001 From: huangyongan Date: Mon, 24 Apr 2023 20:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=BC=96=E8=AF=91=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(), '_');