mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 15:41:18 +01:00
HasFiles and HasSubDirs require a successfully opened directory.
Issue found by David Bailes.
This commit is contained in:
@@ -318,6 +318,8 @@ static void RecursivelyRemove(wxArrayString& filePathArray, int count, int bias,
|
||||
// attempting to delete the directory.
|
||||
if( bDirsMustBeEmpty ){
|
||||
wxDir dir( file );
|
||||
if( !dir.IsOpened() )
|
||||
continue;
|
||||
if( dir.HasFiles() )
|
||||
continue;
|
||||
if( dir.HasSubDirs() )
|
||||
|
||||
Reference in New Issue
Block a user