Skip to content

Commit

Permalink
fix several issues (conan-io#2642)
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded authored Jul 13, 2022
1 parent aab66eb commit 9b20046
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion migrating_to_2.0/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ A typical anti-pattern in the recipes that can be solved with a ``layout()`` dec
class Pkg(Conanfile):
@property
def layout(self):
basic_layout(self, src_folder="source")
Expand Down
6 changes: 5 additions & 1 deletion reference/conanfile/tools/files/basic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ conan.tools.files.rmdir()

.. code-block:: python
def rmdir(path)
def rmdir(conanfile, path)
Utility functions to remove a directory. The existence of the specified directory is checked, so ``rmdir()`` will do nothing if the
directory doesn't exists.
Expand All @@ -208,6 +208,10 @@ Parameters:
- **conanfile**: Conanfile object.
- **path**: Path to the directory.

The behavior regarding the path is the same as Python ``shutil.rmtree``. The provided path can be
relative to the current folder (the current folder depends in which method this tool is used), or
it can be an absolute path.


conan.tools.files.chdir()
-------------------------
Expand Down

0 comments on commit 9b20046

Please sign in to comment.