local_device_gtest_run.py 文件源码

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

项目:chromium-build 作者: discordapp 项目源码 文件源码
def PullAppFilesImpl(device, package, files, directory):
  device_dir = device.GetApplicationDataDirectory(package)
  host_dir = os.path.join(directory, str(device))
  for f in files:
    device_file = posixpath.join(device_dir, f)
    host_file = os.path.join(host_dir, *f.split(posixpath.sep))
    host_file_base, ext = os.path.splitext(host_file)
    for i in itertools.count():
      host_file = '%s_%d%s' % (host_file_base, i, ext)
      if not os.path.exists(host_file):
        break
    device.PullFile(device_file, host_file)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号