Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: build/android/devil/utils/zip_utils.py

Issue 1314913009: [Android] Move some pylib modules into devil/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/devil/utils/watchdog_timer.py ('k') | build/android/pylib/cmd_helper.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import logging 5 import logging
6 import os 6 import os
7 import zipfile 7 import zipfile
8 8
9 9
10 def WriteToZipFile(zip_file, path, arc_path): 10 def WriteToZipFile(zip_file, path, arc_path):
(...skipping 11 matching lines...) Expand all
22 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED) 22 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED)
23 for f in file_names: 23 for f in file_names:
24 file_path = os.path.join(dir_path, f) 24 file_path = os.path.join(dir_path, f)
25 file_arc_path = os.path.join(dir_arc_path, f) 25 file_arc_path = os.path.join(dir_arc_path, f)
26 logging.debug('file: %s -> %s', file_path, file_arc_path) 26 logging.debug('file: %s -> %s', file_path, file_arc_path)
27 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED) 27 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED)
28 else: 28 else:
29 logging.debug('file: %s -> %s', path, arc_path) 29 logging.debug('file: %s -> %s', path, arc_path)
30 zip_file.write(path, arc_path, zipfile.ZIP_DEFLATED) 30 zip_file.write(path, arc_path, zipfile.ZIP_DEFLATED)
31 31
OLDNEW
« no previous file with comments | « build/android/devil/utils/watchdog_timer.py ('k') | build/android/pylib/cmd_helper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698