mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 09:27:59 +02:00
Add InvalidFileNameChars & InvalidPathChars to Path class
This commit is contained in:
parent
7a4a7bd2fb
commit
bc92643c99
1 changed files with 32 additions and 0 deletions
|
@ -34,6 +34,38 @@ namespace System.IO
|
||||||
#else
|
#else
|
||||||
public const char8 VolumeSeparatorChar = '/';
|
public const char8 VolumeSeparatorChar = '/';
|
||||||
#endif //BF_PLATFORM_WINDOWS
|
#endif //BF_PLATFORM_WINDOWS
|
||||||
|
|
||||||
|
#if BF_PLATFORM_WINDOWS
|
||||||
|
public static readonly char8[?] InvalidFileNameChars =
|
||||||
|
.(
|
||||||
|
'\"', '<', '>', '|', '\0',
|
||||||
|
(.)1, (.)2, (.)3, (.)4, (.)5, (.)6, (.)7, (.)8, (.)9, (.)10,
|
||||||
|
(.)11, (.)12, (.)13, (.)14, (.)15, (.)16, (.)17, (.)18, (.)19, (.)20,
|
||||||
|
(.)21, (.)22, (.)23, (.)24, (.)25, (.)26, (.)27, (.)28, (.)29, (.)30,
|
||||||
|
(.)31, ':', '*', '?', '\\', '/'
|
||||||
|
);
|
||||||
|
#else
|
||||||
|
public static readonly char8[?] InvalidFileNameChars =
|
||||||
|
.(
|
||||||
|
'\0', '/'
|
||||||
|
);
|
||||||
|
#endif //BF_PLATFORM_WINDOWS
|
||||||
|
|
||||||
|
#if BF_PLATFORM_WINDOWS
|
||||||
|
public static readonly char8[?] InvalidPathChars =
|
||||||
|
.(
|
||||||
|
'|', '\0',
|
||||||
|
(.)1, (.)2, (.)3, (.)4, (.)5, (.)6, (.)7, (.)8, (.)9, (.)10,
|
||||||
|
(.)11, (.)12, (.)13, (.)14, (.)15, (.)16, (.)17, (.)18, (.)19, (.)20,
|
||||||
|
(.)21, (.)22, (.)23, (.)24, (.)25, (.)26, (.)27, (.)28, (.)29, (.)30,
|
||||||
|
(.)31
|
||||||
|
);
|
||||||
|
#else
|
||||||
|
public static readonly char8[?] InvalidPathChars =
|
||||||
|
.(
|
||||||
|
'\0'
|
||||||
|
);
|
||||||
|
#endif //BF_PLATFORM_WINDOWS
|
||||||
|
|
||||||
// Make this public sometime.
|
// Make this public sometime.
|
||||||
// The max total path is 260, and the max individual component length is 255.
|
// The max total path is 260, and the max individual component length is 255.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue