System.Directory module provides
doesDirectoryExist funciton, which takes a directory name as input and return
True, if the directory exists, else False. Following is the signature of
doesDirectoryExist function.
Previous
Next
Home
doesDirectoryExist
:: FilePath -> IO Bool
Prelude System.Directory> doesDirectoryExist "/Users" True Prelude System.Directory> doesDirectoryExist "/Users123" False Prelude System.Directory> doesDirectoryExist "/Users/harikrishna_gurram" True
No comments:
Post a Comment