-
Notifications
You must be signed in to change notification settings - Fork 419
Ignore directories when copying list of files #1250
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
Ignore directories when copying list of files #1250
Conversation
|
Windows, huh |
|
Indeed! I will check on this next week when I have access to my Windows machine. |
|
This now works on Windows. With hindsight it is obvious that a check for The fix here only applied to |
|
Ugh, all a bit painful :| This is fine, but I wonder the following:
|
|
Taking your questions in reverse order: I don't think we are introducing significant overhead. Each of the In comparison, However, it hadn't really occurred to me that the Do you have preference? |
|
OK, that sounds like good reasoning. Let's leave a set of TODO comments in trailing_whatever explaining this with a link to this PR, so that if we feel like making the effort to refactor later, the trail is clear. Then this can go in as is. |
Fixes #1234.
This PR fixes the
cp,getandputof a list of files in different directories to a single target directory. For exampleresults in
This fix has involved adding a new
kwargtoother_pathsto tell it when to ignore the directory structure of the input files as this information cannot be derived from the existing arguments. I've called this argumentflattenfor brevity, but this could be changed to another names such asflatten_inputorignore_dirsfor example.