Skip to content
Discussion options

You must be logged in to vote
  • Moving files preserves their full permissions (including special bits) but when moving across filesystems, they are dropped again, e.g. a setgid bit on a directory is lost (probably a bug)
  • copy and move operations in lf drop ACLs and xattrs (documented, missed feature)
  • Special bits (suid,guid) are not copied (documented as intended here)

To get this out of the way: lf doesn't intentionally strip these attributes when moving files (currently). It first tries os.Rename, which doesn't change the file's inode and therefore retains permissions, ACLs, xattrs, etc. If that fails because the move crosses filesystems, it falls back to copyAll + os.RemoveAll and now relies on lf's normal copy a…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@valoq
Comment options

@CatsDeservePets
Comment options

Answer selected by valoq
Comment options

You must be logged in to vote
1 reply
@valoq
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants