- Migrating Upcoming folder to standard alpha folders (A-F)

This commit is contained in:
Sol
2016-09-22 19:31:36 +00:00
parent d8e8e4960c
commit d7958df9a7
96 changed files with 115 additions and 101 deletions

View File

@@ -0,0 +1,11 @@
import os
import subprocess
cardsfolder = os.path.join(os.path.dirname(os.getcwd()), 'res', 'cardsfolder')
upcoming = os.path.join(cardsfolder, 'upcoming')
for dirName, subdirList, fileList in os.walk(upcoming):
for file in fileList:
curLocation = os.path.join(upcoming, file)
newFile = os.path.join(cardsfolder, file[0], file)
subprocess.call('svn rename %s %s' % (curLocation, newFile), shell=True)