From 7364e8ca4867f172ba97c2c4f0a75acd9c2b8c15 Mon Sep 17 00:00:00 2001 From: chencheng31 Date: Thu, 21 Apr 2022 14:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=BA=A7=E7=9B=AE=E5=BD=95=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=8C=85=E5=90=AB=E5=88=86=E9=9A=94=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chencheng31 --- src/file_entry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_entry.cpp b/src/file_entry.cpp index e74ae67..78aa8cc 100644 --- a/src/file_entry.cpp +++ b/src/file_entry.cpp @@ -228,7 +228,7 @@ bool FileEntry::CreateDirsInner(const string &path, string::size_type offset) #endif } - string subPath = path.substr(0, pos); + string subPath = path.substr(0, pos + 1); if (!Exist(subPath)) { #if _WIN32 if (mkdir(subPath.c_str()) != 0) {