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

Suggestion: list.files() with and for here #89

Open
fthielen opened this issue Dec 8, 2022 · 1 comment
Open

Suggestion: list.files() with and for here #89

fthielen opened this issue Dec 8, 2022 · 1 comment

Comments

@fthielen
Copy link

fthielen commented Dec 8, 2022

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

@krlmlr
Copy link
Member

krlmlr commented Dec 12, 2022

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

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

No branches or pull requests

2 participants