Created
January 15, 2018 22:56
-
-
Save dad2jrn/e19f0dd90f43e3f0fb9c7bb5b0ffa635 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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