1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-19 09:30:06 +02:00

Don't delete the _data dir - simplified version of Ed's patch.

This commit is contained in:
martynshaw99 2011-06-27 23:18:33 +00:00
parent d5393344c3
commit 9d77cd4638

View File

@ -246,7 +246,7 @@ static int RecursivelyRemoveEmptyDirs(wxString dirPath,
}
}
// Have to recheck dir.HasSubDirs() again, in case they all were deleted in recursive calls.
if (!dir.HasSubDirs() && !dir.HasFiles())
if (!dir.HasSubDirs() && !dir.HasFiles() && (dirPath.Right(5) != wxT("_data")))
{
// No subdirs or files. It's empty so delete it.
// Vaughan, 2010-07-07: