# File lib/pathname.rb, line 1032 def unlink() begin Dir.unlink @path rescue Errno::ENOTDIR File.unlink @path end end