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.
plenary.scan_dir
, unlikefd
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 withvim.fs
functions.closes https://github.com/nvim-telescope/telescope-file-browser.nvim/issues/357