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"
else:
if same_partition(oldfile, newpath):
print "[* Moving file]"
print "[*] Moving file"
try:
shutil.rename(oldfile, newpath)
except:
shutil.move(oldfile, newpath)
except Exception, errormsg:
print "[!] Error moving file! %s" % (errormsg)
#end try
else: