Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed May 19, 2024
1 parent 7b31c9d commit 6c6206a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ubelt/util_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -1514,15 +1514,16 @@ def copy(self, dst, follow_file_symlinks=False, follow_dir_symlinks=False,
copy_function = self._request_copy_function(
follow_file_symlinks=follow_file_symlinks,
follow_dir_symlinks=follow_dir_symlinks, meta=meta)

if WIN32 and platform.python_implementation() == 'PyPy':
_patch_win32_stats_on_pypy()

if self.is_dir():
if sys.version_info[0:2] < (3, 8): # nocover
copytree = _compat_copytree
else:
copytree = shutil.copytree

if WIN32 and platform.python_implementation() == 'PyPy':
_patch_win32_stats_on_pypy()

dst = copytree(
self, dst, copy_function=copy_function,
symlinks=not follow_dir_symlinks, dirs_exist_ok=overwrite)
Expand Down

0 comments on commit 6c6206a

Please sign in to comment.