Skip to content

a path with trailing slash results doubled slash path #209

@ichihara-3

Description

@ichihara-3

When the path with a trailing slash like path/to/dir/ is set to the PATH argument, the file paths in the result become doubled slash paths like path/to/dir//found/file.txt.

It would be good to clean the paths.

example::

$ tree
.
└── examples
    ├── a
    │   └── A.txt
    ├── b
    │   └── B.txt
    └── c

4 directories, 2 files
$ pt hello examples/
examples//a/A.txt
1:hello

examples//b/B.txt
1:hello world

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