Issue #7361 has been reported by aef (Alexander E. Fischer). ---------------------------------------- Feature #7361: Adding Pathname#touch https://bugs.ruby-lang.org/issues/7361 Author: aef (Alexander E. Fischer) Status: Open Priority: Normal Assignee: Category: lib Target version: Pathname has an #mkdir method to create a directory at the path, but does not have a #touch method to create an empty file at that path. There were numerous cases where I had to fallback to using new_file = Pathname.new('location/for/new/file') FileUtils.touch(new_file) instead of simply being able to use: new_file.touch I would like to add this method. If you like it, let me know. I will provide a patch then.
on 2012-11-15 14:30
on 2012-11-24 02:52
Issue #7361 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned Assignee set to akr (Akira Tanaka) Target version set to next minor ---------------------------------------- Feature #7361: Adding Pathname#touch https://bugs.ruby-lang.org/issues/7361#change-33719 Author: aef (Alexander E. Fischer) Status: Assigned Priority: Normal Assignee: akr (Akira Tanaka) Category: lib Target version: next minor Pathname has an #mkdir method to create a directory at the path, but does not have a #touch method to create an empty file at that path. There were numerous cases where I had to fallback to using new_file = Pathname.new('location/for/new/file') FileUtils.touch(new_file) instead of simply being able to use: new_file.touch I would like to add this method. If you like it, let me know. I will provide a patch then.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.