Skip to content

Commit

Permalink
specify preserve_dest_permissions behaviour...
Browse files Browse the repository at this point in the history
...if follow_symlinks is not supported
  • Loading branch information
samschott committed Mar 24, 2024
1 parent 57cf348 commit 5012f90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/maestral/utils/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5012f90

Please sign in to comment.