# Method: Write levelsList to levelsFile (override the existing file)
def writeLevelsToFile(self):
# Open the file in a way that will override the existing file (if it already exists)
# Use a loop to iterate over levelsList item by item
# Convert everything in the item to a string and then add \n to it - before writing it to the file
# Close the file
for file in files:
if os.path.is file (file) :
print (dest) print (full_dest)
full_dest os.path.join (dest, file)
print("\n")
shutil.move (file, full_dest)
Comments
Leave a comment