I have a string var (path) that represents a path:
printfn "Please enter a path"
let path = System.Console.ReadLine()
Is there a way of knowing wheter this path is for a directory or a regular file?
I have a string var (path) that represents a path:
printfn "Please enter a path"
let path = System.Console.ReadLine()
Is there a way of knowing wheter this path is for a directory or a regular file?
Use Directory.Exists(path)
and File.Exists(path)
.