Migrate upcoming DOM files

This commit is contained in:
Chris H
2018-04-16 21:32:34 -04:00
parent 29292956b6
commit ea1770b1a7
230 changed files with 7 additions and 10 deletions

View File

@@ -6,8 +6,12 @@ upcoming = os.path.join(cardsfolder, 'upcoming')
for dirName, subdirList, fileList in os.walk(upcoming):
for filename in fileList:
if filename.startswith(".")
if filename.startswith("."):
continue
curLocation = os.path.join(upcoming, filename)
newFile = os.path.join(cardsfolder, filename[0], filename)
subprocess.call('git mv %s %s' % (curLocation, newFile), shell=True)
if os.path.exists(newFile):
subprocess.call('git rm %s' % (newFile), shell=True)
else:
subprocess.call('git mv %s %s' % (curLocation, newFile), shell=True)