|
File::Path
mkpath()
use File::Path;
mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711); mkpath('/foo/bar/baz'); |
Arguments are:
- the name of the path to create, or a reference to a list of paths to create
- a boolean value, which if TRUE will cause mkpath to print the name of each directory as it is created (defaults to FALSE)
- the numeric mode to use when creating the directories (defaults to 0777)
The last two are optional.
- returns a list of all directories created
|