Closed tseemann closed 4 years ago
How about mkdir (https://perldoc.perl.org/functions/mkdir.html)?
Yes that inbuilt will work too, and is better than using system.
But make_path
will work even if the folder already exists too. (like mkdir -p
)
It's a core module so adds no deps.
The remove_tree
is a good cleanup function too.
Cheers, I will standardise the scripts.
Standardised on master branch release v1.0.1
https://perldoc.perl.org/File/Path.html#SYNOPSIS
Doing backquotes mkdir is not that safe.