File::Path(3p) Perl Programmers Reference Guide File::Path(3p)
File::Path(3p) Perl Programmers Reference Guide File::Path(3p) # File::Path(3p) Perl Programmers Reference Guide File::Path(3p) NNAAMMEE # File::Path - Create or remove directory trees VVEERRSSIIOONN # 2.18 - released November 4 2020. SSYYNNOOPPSSIISS # use File::Path qw(make_path remove_tree); @created = make_path('foo/bar/baz', '/zug/zwang'); @created = make_path('foo/bar/baz', '/zug/zwang', { verbose => 1, mode => 0711, }); make_path('foo/bar/baz', '/zug/zwang', { chmod => 0777, }); $removed_count = remove_tree('foo/bar/baz', '/zug/zwang', { verbose => 1, error => \my $err_list, safe => 1, }); # legacy (interface promoted before v2. ...