summaryrefslogtreecommitdiff
path: root/buildstream/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/utils.py')
-rw-r--r--buildstream/utils.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/buildstream/utils.py b/buildstream/utils.py
index 5bf3863d2..d84f0163f 100644
--- a/buildstream/utils.py
+++ b/buildstream/utils.py
@@ -290,11 +290,11 @@ def copy_files(src, dest, files=None, ignore_missing=False):
Returns:
(:class:`~.FileListResult`): The result describing what happened during this file operation
- Note::
+ .. note::
- Directories in `dest` are replaced with files from `src`,
- unless the existing directory in `dest` is not empty in which
- case the path will be reported in the return value.
+ Directories in `dest` are replaced with files from `src`,
+ unless the existing directory in `dest` is not empty in which
+ case the path will be reported in the return value.
"""
if files is None:
files = list_relative_paths(src)
@@ -316,11 +316,11 @@ def move_files(src, dest, files=None, ignore_missing=False):
Returns:
(:class:`~.FileListResult`): The result describing what happened during this file operation
- Note::
+ .. note::
- Directories in `dest` are replaced with files from `src`,
- unless the existing directory in `dest` is not empty in which
- case the path will be reported in the return value.
+ Directories in `dest` are replaced with files from `src`,
+ unless the existing directory in `dest` is not empty in which
+ case the path will be reported in the return value.
"""
if files is None:
files = list_relative_paths(src)
@@ -342,16 +342,16 @@ def link_files(src, dest, files=None, ignore_missing=False):
Returns:
(:class:`~.FileListResult`): The result describing what happened during this file operation
- Note::
+ .. note::
- Directories in `dest` are replaced with files from `src`,
- unless the existing directory in `dest` is not empty in which
- case the path will be reported in the return value.
+ Directories in `dest` are replaced with files from `src`,
+ unless the existing directory in `dest` is not empty in which
+ case the path will be reported in the return value.
- Note::
+ .. note::
- If a hardlink cannot be created due to crossing filesystems,
- then the file will be copied instead.
+ If a hardlink cannot be created due to crossing filesystems,
+ then the file will be copied instead.
"""
if files is None:
files = list_relative_paths(src)