Hello,
I am in the process to refactoring some code by replacing usage of File and FileUtils with Pathnames and I was surprised to discover that Pathname#touch does not exist.
Would a pull request for such a method be considered?
Definition of Done
Simple usecase
path=Pathname.new('file.txt')path.touch# Would be strictly equivalent to:FileUtils.touch('file.txt')With all the optional arguments
path=Pathname.new('file.txt')time=Time.now - 3600path.touch(mtime: time,nocreate: true,noop: true,verbose: true)# Would be strictly equivalent to:FileUtils.touch('file.txt',mtime: time,nocreate: true,noop: true,verbose: true)
Hello,
I am in the process to refactoring some code by replacing usage of
FileandFileUtilswithPathnames and I was surprised to discover thatPathname#touchdoes not exist.Would a pull request for such a method be considered?
Definition of Done
Simple usecase
With all the optional arguments