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

Unified Diff: recipe_engine/config_types.py

Issue 2918463002: [recipe_modules/file] add real file module to engine. (Closed)
Patch Set: rebase Created 3 years, 7 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_engine/unittests/run_test.py » ('j') | recipe_modules/file/api.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/config_types.py
diff --git a/recipe_engine/config_types.py b/recipe_engine/config_types.py
index 0ea3944f50ee96794f901091f0825ec06c8610ca..cfe3061a76714c1ad8908b4513a8e54b956b2c48 100644
--- a/recipe_engine/config_types.py
+++ b/recipe_engine/config_types.py
@@ -178,6 +178,20 @@ class Path(RecipeConfigType):
return not self == other
def join(self, *pieces, **kwargs):
+ """Appends *pieces to this Path, returning a new Path.
+
+ Empty values ('', None) in pieces will be omitted.
+
+ Args:
+ pieces (tuple(str)) - The components of the path relative to base. These
+ pieces must be non-relative (i.e. no '..' or '.', etc. as a piece).
+
+ Kwargs:
+ platform_ext (dict(str, str)) - A mapping from platform name (as defined
+ by the 'platform' module), to a suffix for the path.
+
+ Returns (Path) - the new Path.
+ """
if not pieces and not kwargs:
return self
kwargs.setdefault('platform_ext', self.platform_ext)
« no previous file with comments | « no previous file | recipe_engine/unittests/run_test.py » ('j') | recipe_modules/file/api.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698