[GH-ISSUE #334] Preserve permissions on duplicate file #244

Closed
opened 2026-03-02 15:57:10 +03:00 by kerem · 0 comments
Owner

Originally created by @Zoundream on GitHub (Apr 1, 2020).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/334

If I'm not mistaken when copying a file the php copy() function is used, which does not seem to preserve permissions.
It would be useful to call chmod($f2, fileperms($f1)); after that to set the same permissions on the newly created file so they match the original one.

Originally created by @Zoundream on GitHub (Apr 1, 2020). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/334 If I'm not mistaken when copying a file the php `copy()` function is used, which does not seem to preserve permissions. It would be useful to call `chmod($f2, fileperms($f1));` after that to set the same permissions on the newly created file so they match the original one.
kerem 2026-03-02 15:57:10 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#244
No description provided.