Actions
Feature #21766
openPathname + FileUtils making sweet music together
Feature #21766:
Pathname + FileUtils making sweet music together
Status:
Open
Assignee:
-
Target version:
-
Description
I love Pathname. I love FileUtils. Let's bring these two classes EVEN CLOSER TOGETHER by adding some tragically missing helpers. 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
There are some concerns about making pathname.rb more dependent on FileUtils, which I understand. What's the best way forward? Let's do it!
(also see https://github.com/ruby/pathname/issues/64 and https://github.com/ruby/pathname/issues/72)
Actions