Filesystem Operations
Opened this issue · 1 comments
This should be done after #11 to avoid any rewriting later.
Operations
- Copy file
- Paste file
- Cut file
- Move file to another directory
Shortcuts
- Ctrl+C
- Ctrl+V
- Ctrl+X
- F2 (rename)
hey, I've tested the latest commit and there's no support for deleting directories yet. I'm not sure if that was just forgotten or if it was purposely omitted.
Also instead of flat out removing files and directories we should simply move them to the trash bin and have a time limit for how long they should be there.
The path for them seems to be:
Platform | Path |
---|---|
Unix | $HOME/.local/share/Trash/files |
MacOS | $HOME/.Trash |
Windows | C:$Recycle.Bin |
Looking at my trash directory it seems to also store the metadata for those files on a $HOME/.local/share/Trash/info
with the example:
[Trash Info]
Path=/home/raph/Projects/langtest/build
DeletionDate=2023-06-13T15:38:49
So to be compliant with all 3 operating systems we would probably have to later implement the operating system's conventions so users can swap between file managers and have their trash working correctly.