Skip to content

directory should accept a FileList #494

Closed

Description

@jasonkarns

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?

Activity

  1. mblumtritt commented on Apr 21, 2023

    @mblumtritt

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

    files.pathmap("%d").each{ |name| directory name}
  2. jasonkarns commented on Apr 22, 2023

    @jasonkarns
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions