Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(actions.move): scan_dir folding moving #358

Merged
merged 1 commit into from
Feb 9, 2024
Merged

Conversation

jamestrew
Copy link
Collaborator

plenary.scan_dir, unlike fd doesn't append trailing path separators to directory paths. This was leading to inconsistent behaviors getting the basename of directories depending on the usage of scan_dir/fd.

This PR refactors the entry maker to standardizes path strings to NOT end with path separators regardless of type. This is inline with fs_realpath and more compatible with vim.fs functions.

closes #357

`plenary.scan_dir`, unlike `fd` doesn't append trailing path separators
to directory paths. This was leading to inconsistent behaviors getting
the basename of directories depending on the usage of scan_dir/fd.

This PR refactors the entry maker to standardizes path strings to NOT
end with path separators regardless of type. This is inline with
`fs_realpath` and more compatible with `vim.fs` functions.
@jamestrew jamestrew merged commit 26b5e86 into master Feb 9, 2024
4 checks passed
@jamestrew jamestrew deleted the scandir-move branch February 9, 2024 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect Parent Folder Name When Moving Folders
1 participant