(self, dest_filename)
return True
Rename/move file
Rename/move file
Rename / move file
def rename(self, dest_filename):
        """Rename/move file"""
        try:
            os.rename(self.filename, dest_filename)
        except (IOError, OSError):
            return False
        return True
def rename ( self , dest_filename ) : try : os . rename ( self . filename , dest_filename ) except ( IOError , OSError ) : return False return True