Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Allow Dynamic File Renaming #35

Merged
merged 1 commit into from Apr 22, 2014

Conversation

Projects
None yet
2 participants
Contributor

SPARTAN563 commented Jan 2, 2014

Adds support for options.rename which is a function(targetPath) { return newPath; } allowing selective renaming of files.

Not sure how useful this will be for other users, however I had need of it in one of my applications and figured I'd open a merge request in case you wanted the functionality.

WARNING This doesn't support renaming beyond the filename/extension, changing the directory (unless the directory already exists) is going to cause ncp to fail the copy. This isn't an issue in my use case, but it might be for others.

@AvianFlu AvianFlu added a commit that referenced this pull request Apr 22, 2014

@AvianFlu AvianFlu Merge pull request #35 from SierraSoftworks/master
Allow Dynamic File Renaming
3117968

@AvianFlu AvianFlu merged commit 3117968 into AvianFlu:master Apr 22, 2014

1 check failed

default The Travis CI build could not complete due to an error
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment