We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3b7b3 commit 4bd411eCopy full SHA for 4bd411e
src/Zip/FastZip.cs
@@ -456,14 +456,22 @@ static int MakeExternalAttributes(FileInfo info)
456
{
457
return (int)info.Attributes;
458
}
459
-
+
460
+#if NET_VER_1
461
static bool NameIsValid(string name)
462
463
return (name != null) &&
464
(name.Length > 0) &&
465
(name.IndexOfAny(Path.InvalidPathChars) < 0);
466
467
+#else
468
+ static bool NameIsValid(string name)
469
+ {
470
+ return (name != null) &&
471
+ (name.Length > 0) &&
472
+ (name.IndexOfAny(Path.GetInvalidPathChars()) < 0);
473
+ }
474
+#endif
475
#endregion
476
477
/// <summary>
0 commit comments