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

directory should accept a FileList #494

Closed
jasonkarns opened this issue Apr 20, 2023 · 2 comments · Fixed by #530
Closed

directory should accept a FileList #494

jasonkarns opened this issue Apr 20, 2023 · 2 comments · Fixed by #530

Comments

@jasonkarns
Copy link
Contributor

I was shocked to learn that directory files.pathmap("%d") doesn't work.

rake aborted!
TypeError: no implicit conversion of Rake::FileList into String

Does this seem like a reasonable feature request?

@mblumtritt
Copy link

The directory method uses a string as parameter. But you can

files.pathmap("%d").each{ |name| directory name}

@jasonkarns
Copy link
Contributor Author

The directory method uses a string as parameter

Precisely. That's what I'm suggesting is the deficiency. FileLists are the core primitive of rake. It's how file tasks are generated. directory itself is a wrapper for file tasks. It's incongruent for some file tasks to accept FileLists but not others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants