Skip to content

add 'copy' function to filetools for easy copying of lists of files/directories #2180

New issue

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

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Merged
merged 2 commits into from
Mar 23, 2017

Conversation

boegel
Copy link
Member

@boegel boegel commented Mar 23, 2017

No description provided.

@boegelboegel added this to the 3.2.0 milestone Mar 23, 2017

for path in paths:

full_target_path = os.path.join(target_path, os.path.basename(path))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

target_path (in the last part)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, target_path is the directory we're copying to, full_target_path is the path that also includes the name of the file/directory we're copying to...

_log.info("Copying %d files & directories to %s", len(paths), target_path)

for path in paths:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

less whitespace?

@boegel
Copy link
Member Author

Thanks for the review @wpoely86!

@boegelboegel merged commit 82e18e1 into easybuilders:develop Mar 23, 2017
@boegelboegel deleted the copy branch March 23, 2017 15:08
Sign up for free to join this conversation on . Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants