| Index: recipe_modules/shutil/api.py
|
| diff --git a/recipe_modules/shutil/api.py b/recipe_modules/shutil/api.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8b86c8782e6346a1671bf4de98047f28e26a7180
|
| --- /dev/null
|
| +++ b/recipe_modules/shutil/api.py
|
| @@ -0,0 +1,17 @@
|
| +# Copyright 2016 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +from recipe_engine import recipe_api
|
| +
|
| +# TODO(phajdan.jr): Move applicable methods from build repo's file module here.
|
| +class ShutilApi(recipe_api.RecipeApi):
|
| + def rmtree(self, path, **kwargs):
|
| + self.m.python.inline(
|
| + 'rmtree %s' % path,
|
| + """
|
| + import shutil, sys
|
| + shutil.rmtree(sys.argv[1])
|
| + """,
|
| + args=[path],
|
| + **kwargs)
|
|
|