here icon indicating copy to clipboard operation
here copied to clipboard

Suggestion: `list.files()` with and for here

Open fthielen opened this issue 1 year ago • 1 comments

Hi,

with list.files() we can retrieve a list of all file names including their extensions from a specified folder. Adding all.files = TRUE extends this to the complete file path.

Do you see added value in a similar function but then in the here() fashion of returning the file path relative to the top-level directory?

Greetings, Frederick

fthielen avatar Dec 08 '22 11:12 fthielen

Thanks. Does fs::path_rel(..., start = here()) do the job?

krlmlr avatar Dec 12 '22 04:12 krlmlr