Refined file system detection for #186

This commit is contained in:
Michael J. Seiferling
2019-04-27 10:57:33 -06:00
parent aa37c6525d
commit b48be71acc
+2 -2
View File
@@ -119,9 +119,9 @@ Public Class mgrPath
oSettings.LoadSettings()
sFormat = oSettings.BackupDriveFormat.ToLower
If sFormat.Contains("fat") Or sFormat.Contains("ntfs") Then
If sFormat.StartsWith("fat") Or sFormat = "vfat" Or sFormat = "ntfs" Then
cInvalidCharacters = {"\", "/", ":", "*", "?", """", "<", ">", "|", Convert.ToChar(0)}
ElseIf sFormat.Contains("ext") Then
ElseIf sFormat.StartsWith("ext") Then
cInvalidCharacters = {"/", Convert.ToChar(0)}
Else
'When unable to determine the format, use the invalid characters provided by the OS.