From 5012f90d0acee04738c5422e575deaa80a1ca463 Mon Sep 17 00:00:00 2001 From: Sam Schott Date: Sun, 24 Mar 2024 14:25:45 +0100 Subject: [PATCH] specify preserve_dest_permissions behaviour... ...if follow_symlinks is not supported --- src/maestral/utils/path.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/maestral/utils/path.py b/src/maestral/utils/path.py index 8ba6d5a59..49efc49c1 100644 --- a/src/maestral/utils/path.py +++ b/src/maestral/utils/path.py @@ -370,7 +370,9 @@ def move( also a folder. :param raise_error: Whether to raise errors or return them. :param preserve_dest_permissions: Whether to apply the permissions of the source - path to the destination path. Permissions will not be set recursively. + path to the destination path. Permissions will not be set recursively and may + will be set for symlinks if this is not supported by the platform, i.e., if + ``os.chmod not in os.supports_follow_symlinks``. :returns: Any caught exception during the move. """ err: Optional[OSError] = None