System.Directory
module provides doesFileExist function, which return true if the file exist,
else false.
Previous
Next
Home
Prelude System.Directory> :t doesFileExist doesFileExist :: FilePath -> IO Bool Prelude System.Directory> Prelude System.Directory> doesFileExist "/Users" False Prelude System.Directory> doesFileExist "/Users/harikrishna_gurram/academyLogin.log" True
No comments:
Post a Comment