Skip to content

Commit 10d306e

Browse files
committed
Update FilesystemHelpers.cs
1 parent 92a20e5 commit 10d306e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/Utils/Storage/Operations/FilesystemHelpers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ private static char[] RestrictedCharacters
3434
{
3535
var userSettingsService = Ioc.Default.GetRequiredService<IUserSettingsService>();
3636
return userSettingsService.FoldersSettingsService.AreAlternateStreamsVisible
37-
? ['\\', '/', '*', '?', '"', '<', '>', '|'] // Allow ":" char
38-
: ['\\', '/', ':', '*', '?', '"', '<', '>', '|'];
37+
? Path.GetInvalidFileNameChars().Where(c => c != ':').ToArray() // Allow ":" char when alternate streams are visible
38+
: Path.GetInvalidFileNameChars();
3939
}
4040
}
4141

0 commit comments

Comments
 (0)