mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 14:32:58 +02:00
Reset temp directory if found to be on FAT drive
This commit is contained in:
@@ -662,6 +662,14 @@ bool FileNames::IsTempDirectoryNameOK( const FilePath & Name )
|
|||||||
wxFileName cmpFile( Name );
|
wxFileName cmpFile( Name );
|
||||||
wxString NameCanonical = cmpFile.GetLongPath( ) + "\\";
|
wxString NameCanonical = cmpFile.GetLongPath( ) + "\\";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (FileNames::FATFilesystemDenied(NameCanonical,
|
||||||
|
XO("The temporary files direcotory is on a FAT formatted drive.\n"
|
||||||
|
"Resetting to default location.")))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return !(NameCanonical.StartsWith( BadPath ));
|
return !(NameCanonical.StartsWith( BadPath ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user