Skip to content

Commit

Permalink
make dest folder if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
paulchabanon committed Nov 13, 2016
1 parent 36a644a commit c9f2a8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autofileaway.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def logDate():
log.write(logDate()+dstFull+'\n\n')
continue

if not os.path.exists(dstFolder):
os.mkdir(dstFolder)

shutil.move(srcFull, dstFull)
log.write(logDate()+srcFull+'\n')
log.write(logDate()+dstFull+'\n\n')
Expand Down

0 comments on commit c9f2a8c

Please sign in to comment.