You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Pathname#touch as a facade for FileUtils.touch #72
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)
Activity
[-]Add `Pathname#touch` as a facade for `File.touch`[/-][+]Add `Pathname#touch` as a facade for `FileUtils.touch`[/+]gurgeous commentedon Dec 2, 2025
I'd be happy too! The PR is going nowhere fast, though...
eregon commentedon Dec 2, 2025
I think #64 (comment) is the next step