Replies: 1 comment 1 reply
-
I don't see this happening, since people might also want to add ".bak", ".tmp" or something else as well. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What do you think about adding a couple methods to Mojo::File to hide/unhide a file by prepending or removing a dot (.) from the beginning of the basename? The list method respects hidden file notation.
hidden/visible could return a Mojo::File object with the hidden or visible form; or hide/unhide could actually move_to the file to a hidden or unhidden state.
This is particularly useful when writing a file to a directory being monitored by inotify. inotify create events are triggered immediately, not when the file is finished writing; therefore it is common convention to write to a hidden file first and making it visible after the file is finished writing.
Beta Was this translation helpful? Give feedback.
All reactions