diff --git a/Modules.Filesystem/File.vb b/Modules.Filesystem/File.vb index 3a2ad940..f0409087 100644 --- a/Modules.Filesystem/File.vb +++ b/Modules.Filesystem/File.vb @@ -31,7 +31,7 @@ Public Class File Private ReadOnly _invalidPathChars As String Private Const REGEX_CLEAN_FILENAME As String = "[\\/:""<>|\b\0\r\n\t]" - Private Const REGEX_CLEAN_PATH As String = "[:""<>|\b\0\r\n\t]" + Private Const REGEX_CLEAN_PATH As String = "[""<>|\b\0\r\n\t]" ' The limit enforced by windows for filenpaths is 260, ' so we use a slightly smaller number to have some Error margin.