WebDAV client error #1015

This commit is contained in:
Karel Pičman 2019-06-25 12:40:16 +02:00
parent ee8b7b8631
commit 6a009883ad

View File

@ -359,7 +359,7 @@ module DAV4Rack
# Name of the resource # Name of the resource
def name def name
File.basename(path) ::File.basename(path)
end end
# Name of the resource to be displayed to the client # Name of the resource to be displayed to the client
@ -449,7 +449,7 @@ module DAV4Rack
def parent def parent
return nil if @path == '/' return nil if @path == '/'
unless @path.to_s.empty? unless @path.to_s.empty?
new_for_path File.split(@path).first new_for_path ::File.split(@path).first
end end
end end