diff --git a/lib/dav4rack/remote_file.rb b/lib/dav4rack/remote_file.rb index 3e3a329f..4196515d 100644 --- a/lib/dav4rack/remote_file.rb +++ b/lib/dav4rack/remote_file.rb @@ -28,7 +28,7 @@ module Dav4rack @heads = {} @cache_file = args[:cache_directory] ? cache_file_path : nil @redefine_prefix = nil - if(@cache_file && File.exists?(@cache_file)) + if(@cache_file && File.exist?(@cache_file)) @root = '' @path_info = @cache_file @path = @path_info