File.exists? is deprecated

This commit is contained in:
Karel Pičman 2022-05-10 07:52:28 +02:00
parent 63b246063f
commit 921faaa940

View File

@ -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