![]() |
![]()
| ![]() |
![]()
NAMENo::Worries::Dir - directory handling without worries SYNOPSISuse No::Worries::Dir qw(dir_change dir_ensure dir_make dir_parent dir_read dir_remove); # change directory dir_change("/tmp"); # make sure a directory exists (not an error if it exists already) dir_ensure("/tmp/some/path", mode => oct(770)); # make a directory (an error if it exists already) dir_make("/tmp/some/path", mode => oct(770)); # find out the parent directory of some path $parent = dir_parent($path); dir_ensure($parent); # read a directory foreach $name (dir_read("/etc")) { ... } # remove a directory dir_remove("/tmp/some/path"); DESCRIPTIONThis module eases directory handling by providing convenient wrappers around standard directory functions. All the functions die() on error. FUNCTIONSThis module provides the following functions (none of them being exported by default):
SEE ALSONo::Worries. AUTHORLionel Cons <http://cern.ch/lionel.cons> Copyright (C) CERN 2012-2019
|