def move(self, destination_directory, deleteSourceDirectory=False): jvr_helper.log('move') jvr_helper.log(deleteSourceDirectory) jvr_helper.ensure_path(destination_directory) destination = self.get_destination(destination_directory) jvr_helper.log('destination: ' + destination) jvr_helper.log('now try to move') jvr_helper.log('self.source: ' + self.source) shutil.move(self.source, destination) if deleteSourceDirectory: shutil.rmtree(self.get_directory()) self.source = destination
def get_converted_file_path(self, destination_directory): jvr_helper.ensure_path(destination_directory) file_name = self.get_filename() + '.m4v' return os.path.join(destination_directory, file_name)