Actions
Feature #11583
openAdd File#unlink
Status:
Open
Assignee:
-
Target version:
-
Description
I propose new method File#unlink.
File#unlink is same as Fille.unlink like this.
class File
def unlink
File.unlink(path)
end
end
It is more objective.
And will be able to write duck typeing with Tempfile#unlink
- Tempfile.open do |f|
+ Tempfile.create do |f|
f.unlink # Not raise an error
end
Files
Updated by kosaki (Motohiro KOSAKI) almost 10 years ago
Unix can unlink an opend file, but windows doesnt. usa-san, what do you think about this patch?
Updated by usa (Usaku NAKAMURA) almost 10 years ago
Of cource, it's nonsence for me.
Updated by nobu (Nobuyoshi Nakada) almost 10 years ago
- Related to Feature #11218: File.open FILE_SHARE_DELETE added
Actions
Like0
Like0Like0Like0