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

Unified Diff: README.recipes.md

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
« no previous file with comments | « no previous file | recipe_modules/file/api.py » ('j') | recipe_modules/file/api.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.recipes.md
diff --git a/README.recipes.md b/README.recipes.md
index 882eee4b11e438fd2042536eadbe2857f22d508b..cd1a1390346e9314fbe8e663d7377d51a3f94fd1 100644
--- a/README.recipes.md
+++ b/README.recipes.md
@@ -265,6 +265,16 @@ Args:
Raises file.Error if the path exists but is not a directory.
+— **def [filesizes](/recipe_modules/file/api.py#L227)(self, name, \*files, \*\*kwargs):**
+
+Returns list of filesizes for a given files.
+
+Args:
+ * name (str) - The name of the step.
+ * files (Path) - One or more paths to files.
+
+Returns list[int], size of each file in bytes.
+
— **def [glob\_paths](/recipe_modules/file/api.py#L145)(self, name, source, pattern, test_data=()):**
Performs glob expansion on `pattern`.
@@ -338,7 +348,7 @@ Args:
Raises file.Error.
-— **def [rmcontents](/recipe_modules/file/api.py#L244)(self, name, source):**
+— **def [rmcontents](/recipe_modules/file/api.py#L266)(self, name, source):**
Similar to rmtree, but removes only contents not the directory.
@@ -353,7 +363,7 @@ Args:
Raises file.Error.
-— **def [rmglob](/recipe_modules/file/api.py#L262)(self, name, source, pattern):**
+— **def [rmglob](/recipe_modules/file/api.py#L284)(self, name, source, pattern):**
Removes all entries in `source` matching the glob `pattern`.
@@ -366,7 +376,7 @@ Args:
Raises file.Error.
-— **def [rmtree](/recipe_modules/file/api.py#L227)(self, name, source):**
+— **def [rmtree](/recipe_modules/file/api.py#L249)(self, name, source):**
Recursively removes a directory.
« no previous file with comments | « no previous file | recipe_modules/file/api.py » ('j') | recipe_modules/file/api.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698