mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-06 23:02:42 +02:00
HasFiles and HasSubDirs require a successfully opened directory.
Issue found by David Bailes.
This commit is contained in:
parent
d1b49952e9
commit
4576ccb1ad
@ -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() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user