Skip to content

Instantly share code, notes, and snippets.

@soeirosantos
Created April 10, 2012 14:11
Show Gist options
  • Save soeirosantos/2351652 to your computer and use it in GitHub Desktop.
Save soeirosantos/2351652 to your computer and use it in GitHub Desktop.
util for copy a lot of resources from diferent places and put them in a single place
'''
this is util for copy a lot of resources from diferent places and put them in a single place
In my case I use this for to copy dozens of jar files from my m2 local repository
'''
import shutil
'''
inform in a txt file all paths that you would like to copy, line by line
'''
file_with_jars_path = open('resources_paths.txt', 'r')
for jar_path in file_with_jars_path:
shutil.copy2(jar_path.replace("\n",""), "/path/where/put")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment