rename File.exists? to File.exist?

exists? is marked as obsolete in the API doc [madx]
This commit is contained in:
Chris Wanstrath 2009-07-14 00:08:58 -07:00
parent a201579ef4
commit 98215fe488

View File

@ -116,10 +116,14 @@ module FakeFS
parts * PATH_SEPARATOR
end
def self.exists?(path)
def self.exist?(path)
FileSystem.find(path) || false
end
class << self
alias_method :exists?, :exist?
end
def self.directory?(path)
if path.respond_to? :entry
path.entry.is_a? MockDir