Skip to content

Instantly share code, notes, and snippets.

@dad2jrn
Created January 15, 2018 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dad2jrn/e19f0dd90f43e3f0fb9c7bb5b0ffa635 to your computer and use it in GitHub Desktop.
Save dad2jrn/e19f0dd90f43e3f0fb9c7bb5b0ffa635 to your computer and use it in GitHub Desktop.
import os
import shutil
src = '/tmp/from/'
dst = '/tmp/to/'
filelist = []
files = os.listdir(src)
for filename in files:
filelist.append(filename)
fullpath = src + '/' + filename
shutil.move(os.path.join(src, filename), os.path.join(dst, filename))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment