Skip to content

Instantly share code, notes, and snippets.

@gkmngrgn
Created August 13, 2009 11:57
Show Gist options
  • Save gkmngrgn/167125 to your computer and use it in GitHub Desktop.
Save gkmngrgn/167125 to your computer and use it in GitHub Desktop.
def copyRepository(src, dst):
os.mkdir("%s/repo" % dst)
for file in glob.glob("%s/repo/*" % src):
file_name = os.path.split(file)[1]
shutil.copy(file, "%s/repo/%s" % (dst, file_name))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment