mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
- Migrating Upcoming folder to standard alpha folders (A-F)
This commit is contained in:
11
forge-gui/tools/migrateUpcoming.py
Normal file
11
forge-gui/tools/migrateUpcoming.py
Normal 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)
|
||||
Reference in New Issue
Block a user