File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -983,13 +983,16 @@ module Shim =
983983 let isInvalidPath ( p : string ) =
984984 String.IsNullOrEmpty( p) || p.IndexOfAny( System.IO.Path.GetInvalidPathChars()) <> - 1
985985
986+ let isInvalidFilename ( p : string ) =
987+ String.IsNullOrEmpty( p) || p.IndexOfAny( System.IO.Path.GetInvalidFileNameChars()) <> - 1
988+
986989 let isInvalidDirectory ( d : string ) =
987990 d= null || d.IndexOfAny( Path.GetInvalidPathChars()) <> - 1
988991
989992 isInvalidPath ( path) ||
990993 let directory = Path.GetDirectoryName( path)
991994 let filename = Path.GetFileName( path)
992- isInvalidDirectory( directory) || isInvalidPath ( filename)
995+ isInvalidDirectory( directory) || isInvalidFilename ( filename)
993996
994997 member __.GetTempPathShim () = System.IO.Path.GetTempPath()
995998
You can’t perform that action at this time.
0 commit comments