OLD | NEW |
---|---|
(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) | |
OLD | NEW |