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.
|
// attempting to delete the directory.
|
||||||
if( bDirsMustBeEmpty ){
|
if( bDirsMustBeEmpty ){
|
||||||
wxDir dir( file );
|
wxDir dir( file );
|
||||||
|
if( !dir.IsOpened() )
|
||||||
|
continue;
|
||||||
if( dir.HasFiles() )
|
if( dir.HasFiles() )
|
||||||
continue;
|
continue;
|
||||||
if( dir.HasSubDirs() )
|
if( dir.HasSubDirs() )
|
||||||
|
|||||||
Reference in New Issue
Block a user