rmapi gives an error when there's a file in the directory that happens to have the exact same name as a directory in that folder.
For example, if you have this:
- Scrybble/
- Test folders/
- Samename/ `/Scrybble/Test folders/Samename/` is a directory
- a notebook
- Samename `/Scrybble/Test folders/Samename` is a file
|
if err != nil || node.IsDirectory() { |
If you do rmapi -ni get "Scrybble/Test folder/Samename" it'll fail with ERROR: 2025/07/07 16:28:23 main.go:85: Error: file doesn't exist.
rmapi gives an error when there's a file in the directory that happens to have the exact same name as a directory in that folder.For example, if you have this:rmapi/shell/get.go
Line 26 in 26960a2
If you dormapi -ni get "Scrybble/Test folder/Samename"it'll fail withERROR: 2025/07/07 16:28:23 main.go:85: Error: file doesn't exist.