def _run_in_the_background(self, view, src_file, dst_file):
try:
ssh_cmd('mv "{src}" "{dst}"'.format(
src=src_file.remote_path(),
dst=dst_file.remote_path()))
except:
log_exception('Failed to mv remote files.')
sublime.error_message(
'Failed to move files remotely.\n\nSRC={src}\n\nDST={dst}'.format(
src=src_file.remote_path(),
dst=dst_file.remote_path()))
return
self._rm_local_file(src_file.local_path())
self._rm_local_file(dst_file.local_path())
Commands.open_file(self.view, dst_file.to_args())
log(dir(self.view))
view.close()
STATE.update_list(cwd=s_cwd(view),
files_to_add=[dst_file],
files_to_rm=[src_file])
评论列表
文章目录