Added wrappers for shutil.copytree and os.chdir (WIP)#1561
Added wrappers for shutil.copytree and os.chdir (WIP)#1561wpoely86 wants to merge 7 commits intoeasybuilders:developfrom
Conversation
easybuild/tools/filetools.py
Outdated
There was a problem hiding this comment.
include DEPRECATED in the docstring please
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2547/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
@boegel an attempt at including files, still needs proper testing |
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2548/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
@wpoely86: keep me posted if you'v tested this through; are you up for adding tests for these too? |
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2549/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2550/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2562/console for more details). This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
@wpoely86: please take into account easybuilders/easybuild-easyblocks#492 here |
| for item in src: | ||
| if os.path.isfile(item): | ||
| _log.debug("Copying file %s to %s" % (item, dst)) | ||
| shutil.copy2(item, dst) |
There was a problem hiding this comment.
you should take into account that individual files can also be symlinks, since copy2 resolves the symlink rather than copying it
cfr. http://stackoverflow.com/questions/4847615/copying-a-symbolic-link-in-python
|
This is going to stay WIP forever |
To be used for the extended dry run.