Removed unnecessary check for lower and upper folder
This commit is contained in:
@@ -336,12 +336,6 @@ bool cFile::DeleteFolderContents(const AString & a_FolderName)
|
||||
auto Contents = cFile::GetFolderContents(a_FolderName);
|
||||
for (const auto & item: Contents)
|
||||
{
|
||||
// Skip "." and ".." altogether:
|
||||
if ((item == ".") || (item == ".."))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Remove the item:
|
||||
auto WholePath = a_FolderName + GetPathSeparator() + item;
|
||||
if (IsFolder(WholePath))
|
||||
|
||||
Reference in New Issue
Block a user