createDirectory package:rawfilepath

Create a new directory.
ghci> createDirectory "/tmp/mydir"
ghci> getDirectoryFiles "/tmp/mydir"
[".",".."]
ghci> createDirectory "/tmp/mydir/anotherdir"
ghci> getDirectoryFiles "/tmp/mydir"
[".","..","anotherdir"]
Create a new directory if it does not already exist. If the first argument is True the function will also create all parent directories when they are missing.