-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More useful file commands #26
Comments
Is this too UNIX centric? Recursive
|
The names are Unixy, but the need for the functionality is not. make_path() and remove_tree() are better. Not sure what to do about mv and cp and touch. |
hmm, move_file/copy_file isn't good enough because you can move/copy a directory. And I don't like move or copy because they are general verbs. Naming them Fred and Barney isn't any good either. Must think some more. |
Rather than making these functions, make them methods on file/dir objects. In particular, Path::Extended does a lot of this. |
The following syntax looks reasonable to me:
I'm probably trying too hard to be smart with that auto-remove/auto-merge thing. |
doing that syntax with a list of things is probably the harder option, but I don't see why its neeed:
|
How about Path::Tiny? |
Path::Tiny covers touch, recursive rm (remove_tree()) and mkdir -p (mkpath). Since this issue speculative, and much of that speculation and much much more is done by incorporating Path::Tiny, I'm going to close it. Concrete requests can be opened as separate issues. |
touch
recursive rm
mv and cp allowing multiple source files to a directory
mkdir -p
Crib from ExtUtils::Command and Shell::Command.
The text was updated successfully, but these errors were encountered: