多级目录创建包含分隔符

Signed-off-by: chencheng31 <chencheng8@huawei.com>
This commit is contained in:
chencheng31
2022-04-21 14:58:45 +08:00
parent 89f75a66cf
commit 7364e8ca48
+1 -1
View File
@@ -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) {