Filesystem/File: Allow doublecolon in paths

This commit is contained in:
Jonathan Jenne 2021-08-20 14:27:04 +02:00
parent bf95108bb8
commit 250d289d08

View File

@ -31,7 +31,7 @@ Public Class File
Private ReadOnly _invalidPathChars As String Private ReadOnly _invalidPathChars As String
Private Const REGEX_CLEAN_FILENAME As String = "[\\/:""<>|\b\0\r\n\t]" 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, ' The limit enforced by windows for filenpaths is 260,
' so we use a slightly smaller number to have some Error margin. ' so we use a slightly smaller number to have some Error margin.