open System.IO let () = let files = Directory.GetFiles("/bin") for file in files do Path.GetFileName file |> printfn "%s" done