Skip to content

Pathname + FileUtils making sweet music together #64

@gurgeous

Description

@gurgeous

I love Pathname. I love FileUtils. Let's bring these two classes EVEN CLOSER TOGETHER by adding some tragically missing helpers. I would be happy to create a PR for this amazing functionality. Something like this, perhaps?

class Pathname
  def mkdir_p(...) = FileUtils.mkdir_p(@path, ...)
  def ln(...) = FileUtils.ln(@path, ...)
  def ln_s(...) = FileUtils.ln_s(@path, ...)
  def ln_sf(...) = FileUtils.ln_sf(@path, ...)
  def cp(...) = FileUtils.cp(@path, ...)
  def cp_r(...) = FileUtils.cp_r(@path, ...)
  def mv(...) = FileUtils.mv(@path, ...)
  def rm(...) = FileUtils.rm(@path, ...)
  def rm_r(...) = FileUtils.rm_r(@path, ...)
  def rm_rf(...) = FileUtils.rm_rf(@path, ...)
end

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