Skip to content

Filename and path shenanigans #29

@Azeirah

Description

@Azeirah

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions