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

Unified Diff: recipe_modules/file/examples/copytree.py

Issue 2993713003: Add file.filesizes to recipe engine core modules. (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: recipe_modules/file/examples/copytree.py
diff --git a/recipe_modules/file/examples/copytree.py b/recipe_modules/file/examples/copytree.py
index ead18abb719823970d2176efd72bbbac964ce1ed..3b64517797d783fd4df68e6d8b2fba7fd0f4ea8b 100644
--- a/recipe_modules/file/examples/copytree.py
+++ b/recipe_modules/file/examples/copytree.py
@@ -15,6 +15,7 @@ def RunSteps(api):
api.file.ensure_directory('ensure "some dir"', dest)
for fname in file_names:
api.file.write_text('write %s' % fname, dest.join(fname), fname)
+ api.file.filesizes('check filesizes', *file_names)
dest2 = api.path['start_dir'].join('some other dir')
api.file.rmtree('make sure dest is gone', dest2)

Powered by Google App Engine
This is Rietveld 408576698