@@ -78,15 +78,19 @@ def copy_fs_if(
7878 ``"always"``
7979 The source file is always copied.
8080 ``"newer"``
81- The last modification time of the source file must be newer than that of the destination file.
82- If either file has no modification time, the copy is performed always.
81+ The last modification time of the source file must be newer than that
82+ of the destination file. If either file has no modification time, the
83+ copy is performed always.
8384 ``"older"``
84- The last modification time of the source file must be older than that of the destination file.
85- If either file has no modification time, the copy is performed always.
85+ The last modification time of the source file must be older than that
86+ of the destination file. If either file has no modification time, the
87+ copy is performed always.
8688 ``"exists"``
87- The source file is only copied if a file of the same path already exists in ``dst_fs``.
89+ The source file is only copied if a file of the same path already
90+ exists in ``dst_fs``.
8891 ``"not_exists"``
89- The source file is only copied if no file of the same path already exists in ``dst_fs``.
92+ The source file is only copied if no file of the same path already
93+ exists in ``dst_fs``.
9094
9195
9296 Arguments:
@@ -99,8 +103,8 @@ def copy_fs_if(
99103 on_copy (callable):A function callback called after a single file copy
100104 is executed. Expected signature is ``(src_fs, src_path, dst_fs,
101105 dst_path)``.
102- workers (int): Use ``worker`` threads to copy data, or ``0`` (default) for
103- a single-threaded copy.
106+ workers (int): Use ``worker`` threads to copy data, or ``0`` (default)
107+ for a single-threaded copy.
104108
105109 """
106110 return copy_dir_if (
@@ -169,15 +173,19 @@ def copy_file_if(
169173 ``"always"``
170174 The source file is always copied.
171175 ``"newer"``
172- The last modification time of the source file must be newer than that of the destination file.
173- If either file has no modification time, the copy is performed always.
176+ The last modification time of the source file must be newer than that
177+ of the destination file. If either file has no modification time, the
178+ copy is performed always.
174179 ``"older"``
175- The last modification time of the source file must be older than that of the destination file.
176- If either file has no modification time, the copy is performed always.
180+ The last modification time of the source file must be older than that
181+ of the destination file. If either file has no modification time, the
182+ copy is performed always.
177183 ``"exists"``
178- The source file is only copied if a file of the same path already exists in ``dst_fs``.
184+ The source file is only copied if a file of the same path already
185+ exists in ``dst_fs``.
179186 ``"not_exists"``
180- The source file is only copied if no file of the same path already exists in ``dst_fs``.
187+ The source file is only copied if no file of the same path already
188+ exists in ``dst_fs``.
181189
182190
183191 Arguments:
@@ -344,15 +352,19 @@ def copy_dir_if(
344352 ``"always"``
345353 The source file is always copied.
346354 ``"newer"``
347- The last modification time of the source file must be newer than that of the destination file.
348- If either file has no modification time, the copy is performed always.
355+ The last modification time of the source file must be newer than that
356+ of the destination file. If either file has no modification time, the
357+ copy is performed always.
349358 ``"older"``
350- The last modification time of the source file must be older than that of the destination file.
351- If either file has no modification time, the copy is performed always.
359+ The last modification time of the source file must be older than that
360+ of the destination file. If either file has no modification time, the
361+ copy is performed always.
352362 ``"exists"``
353- The source file is only copied if a file of the same path already exists in ``dst_fs``.
363+ The source file is only copied if a file of the same path already
364+ exists in ``dst_fs``.
354365 ``"not_exists"``
355- The source file is only copied if no file of the same path already exists in ``dst_fs``.
366+ The source file is only copied if no file of the same path already
367+ exists in ``dst_fs``.
356368
357369 Arguments:
358370 src_fs (FS or str): Source filesystem (instance or URL).
0 commit comments