def run(self, edit):
view = self.view
file = STATE.file(self.view.file_name())
title = 'Delete file:\n\n{0}'.format(file.remote_path())
if sublime.ok_cancel_dialog(title, 'Delete'):
log("Deleting the file...")
cmd_str = 'rm -f {remote_path}'.format(remote_path=file.remote_path())
ssh_cmd(cmd_str)
self.view.close()
STATE.update_list(cwd=s_cwd(view), files_to_rm=[file])
评论列表
文章目录