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

Side by Side Diff: recipe_modules/shutil/api.py

Issue 1866313002: recipe engine: add tempfile and shutil modules (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: TODO Created 4 years, 8 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 | « recipe_modules/shutil/__init__.py ('k') | recipe_modules/shutil/example.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from recipe_engine import recipe_api
6
7 # TODO(phajdan.jr): Move applicable methods from build repo's file module here.
8 class ShutilApi(recipe_api.RecipeApi):
9 def rmtree(self, path, **kwargs):
10 self.m.python.inline(
11 'rmtree %s' % path,
12 """
13 import shutil, sys
14 shutil.rmtree(sys.argv[1])
15 """,
16 args=[path],
17 **kwargs)
OLDNEW
« no previous file with comments | « recipe_modules/shutil/__init__.py ('k') | recipe_modules/shutil/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698