RemoteCpp.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:RemoteCpp 作者: ruibm 项目源码 文件源码
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])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号