mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-22 00:21:18 +01:00
More accurate comments, after foregoing bug1567 fixes.
This commit is contained in:
@@ -546,10 +546,16 @@ bool DirManager::SetProject(wxString& newProjPath, wxString& newProjName, const
|
|||||||
// nothing because SetProject is called before there are any
|
// nothing because SetProject is called before there are any
|
||||||
// blockfiles. Cleanup code trigger is the same
|
// blockfiles. Cleanup code trigger is the same
|
||||||
if (trueTotal > 0) {
|
if (trueTotal > 0) {
|
||||||
// Clean up after ourselves; look for empty directories in the old
|
// Clean up after ourselves; boldly remove all files and directories
|
||||||
// and NEW project directories. The easiest way to do this is to
|
// in the tree. (Unlike what the earlier version of this comment said.)
|
||||||
// recurse depth-first and rmdir every directory seen in old and
|
// Because this is a relocation of the project, not the case of closing
|
||||||
// NEW; rmdir will fail on non-empty dirs.
|
// a persistent project.
|
||||||
|
|
||||||
|
// You may think the loops above guarantee that all files we put in the
|
||||||
|
// folders have been moved away already, but:
|
||||||
|
// to fix bug1567 on Mac, we need to find the extraneous .DS_Store files
|
||||||
|
// that we didn't put there, but that Finder may insert into the folders,
|
||||||
|
// and mercilessly remove them too.
|
||||||
|
|
||||||
CleanDir(
|
CleanDir(
|
||||||
cleanupLoc1, wxEmptyString, _("Cleaning up cache directories"), true);
|
cleanupLoc1, wxEmptyString, _("Cleaning up cache directories"), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user