Skip to content

Commit

Permalink
Removed path validation check in SystemFile
Browse files Browse the repository at this point in the history
  • Loading branch information
itsWindows11 authored Jun 21, 2024
1 parent 15bfcf5 commit f6ba148
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/System/IO/SystemFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ public SystemFile(FileInfo info)
/// </param>
internal SystemFile(string path, bool noValidation)
{
foreach (var c in global::System.IO.Path.GetInvalidPathChars())
{
if (path.Contains(c))
throw new FormatException($"Provided path contains invalid character '{c}'.");
}

Id = path;
Path = path;
}
Expand Down

0 comments on commit f6ba148

Please sign in to comment.