Skip to content

Commit b9be560

Browse files
authored
Update reference/conanfile/tools/files.rst
1 parent 6f3360c commit b9be560

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

reference/conanfile/tools/files.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ conan.tools.rename()
7575
7676
def rename(conanfile, src, dst)
7777
78-
Utility functions to rename a file or folder *src* to *dst* with retrying. ``os.rename()`` frequently raises "Access is denied" exception on
79-
windows. This function renames file or folder using :command:`robocopy` to avoid the exception on Windows.
78+
Utility functions to rename a file or folder *src* to *dst*. On Windows, it is very common that ``os.rename()`` raises an "Access is denied" exception, so this tool uses:command:`robocopy` if available. If that is not the case, or the rename is done in a non-Windows machine, it falls back to the ``os.rename()`` implementation.
8079

8180
.. code-block:: python
8281

0 commit comments

Comments
 (0)