From 6a009883adbb225cbbfeb823d6bdb9f3715d2afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Tue, 25 Jun 2019 12:40:16 +0200 Subject: [PATCH] WebDAV client error #1015 --- lib/dav4rack/resource.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dav4rack/resource.rb b/lib/dav4rack/resource.rb index 6eb62d3e..22e2bb65 100644 --- a/lib/dav4rack/resource.rb +++ b/lib/dav4rack/resource.rb @@ -359,7 +359,7 @@ module DAV4Rack # Name of the resource def name - File.basename(path) + ::File.basename(path) end # Name of the resource to be displayed to the client @@ -449,7 +449,7 @@ module DAV4Rack def parent return nil if @path == '/' unless @path.to_s.empty? - new_for_path File.split(@path).first + new_for_path ::File.split(@path).first end end