You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Filesystem::deleteDirectory() method returns false if the directory does not exist, and true in any other cases.
I think it should return false if the directory can't be deleted too.
Filesystem::deleteDirectories() returns false if the directory does not contain any sub-directories; shouldn't it return false if it can't delete these sub-directories? (and changing the return value to true if there's no directory to be deleted)
Filesystem::cleanDirectory() returns false if the directory does not exist, and true in any other cases.
I think it should return false also if the directory hasn't been empties too.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Filesystem::deleteDirectory()
method returns false if the directory does not exist, and true in any other cases.I think it should return false if the directory can't be deleted too.
Filesystem::deleteDirectories()
returns false if the directory does not contain any sub-directories; shouldn't it return false if it can't delete these sub-directories? (and changing the return value to true if there's no directory to be deleted)Filesystem::cleanDirectory()
returns false if the directory does not exist, and true in any other cases.I think it should return false also if the directory hasn't been empties too.
Beta Was this translation helpful? Give feedback.
All reactions