mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-20 22:47:00 -04:00
增量编译场景下,针对占用的目录删除不了时,继续编译。
Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
+6
-1
@@ -280,7 +280,12 @@ bool FileEntry::IsIgnore(const string &filename) const
|
||||
bool FileEntry::RemoveAllDirInner(const FileEntry &entry)
|
||||
{
|
||||
if (entry.IsFile()) {
|
||||
return remove(entry.GetFilePath().GetPath().c_str()) == 0;
|
||||
bool result = remove(entry.GetFilePath().GetPath().c_str()) == 0;
|
||||
if (!result) {
|
||||
cerr << "Error: " << entry.GetFilePath().GetPath() << "remove fail !" << endl;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
for (const auto &iter : entry.GetChilds()) {
|
||||
|
||||
Reference in New Issue
Block a user