RemoteCpp.py 文件源码

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

项目:RemoteCpp 作者: ruibm 项目源码 文件源码
def clear_local_caches():
  files = []
  roots = set()
  for window in sublime.windows():
    # All views in a window share the same settings.
    view = window.views()[0]
    cwd = s_cwd(view)
    local_root = File.local_root_for_cwd(cwd)
    roots.add(local_root)
  for root in roots:
      log('Deleting local cache directory [{0}]...'.format(root))
      if os.path.exists(root):
        shutil.rmtree(root)
  for file in files:
    log("Refreshing open file [{0}]...".format(file.remote_path()))
    download_file(file)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号