Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
パスを表す文字列var(パス)があります:
printfn "Please enter a path" let path = System.Console.ReadLine()
このパスがディレクトリ用か通常ファイル用かを知る方法はありますか?
とを使用Directory.Exists(path)しFile.Exists(path)ます。
Directory.Exists(path)
File.Exists(path)