mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
Reset temp directory if found to be on FAT drive
This commit is contained in:
parent
28a286c656
commit
c7a8b824a1
@ -662,6 +662,14 @@ bool FileNames::IsTempDirectoryNameOK( const FilePath & Name )
|
||||
wxFileName cmpFile( Name );
|
||||
wxString NameCanonical = cmpFile.GetLongPath( ) + "\\";
|
||||
#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 ));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user