Fixed typo in info message, fixed file moving and error handling

This commit is contained in:
dbr
2008-11-01 15:07:02 +10:30
parent 6b97c26b36
commit fd6b0505ac

View File

@@ -193,10 +193,10 @@ def main():
print "[!] File already exists, not copying" print "[!] File already exists, not copying"
else: else:
if same_partition(oldfile, newpath): if same_partition(oldfile, newpath):
print "[* Moving file]" print "[*] Moving file"
try: try:
shutil.rename(oldfile, newpath) shutil.move(oldfile, newpath)
except: except Exception, errormsg:
print "[!] Error moving file! %s" % (errormsg) print "[!] Error moving file! %s" % (errormsg)
#end try #end try
else: else: