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

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: presubmit 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
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 class ShutilApi(recipe_api.RecipeApi):
martiniss 2016/04/07 17:35:22 I'm uncomfortable having this, when we have the fi
Paweł Hajdan Jr. 2016/04/07 20:39:04 With shutil module here, we can move build-indepen
martiniss 2016/04/07 21:34:02 If you're volunteering, please add a TODO :) I was
Paweł Hajdan Jr. 2016/04/08 07:46:15 Added TODO and I plan to address it soon. My recip
8 def rmtree(self, path, **kwargs):
9 self.m.python.inline(
10 'rmtree %s' % path,
11 """
12 import shutil, sys
13 shutil.rmtree(sys.argv[1])
14 """,
15 args=[path],
16 **kwargs)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698