Revert "Revert "Fix listing of a user's root directory""
This reverts commit 3ce3efd0fc20ad6a3816256bc2e786a00fa6e6f0.
This commit is contained in:
parent
3ce3efd0fc
commit
207bb0efde
@ -278,8 +278,12 @@ module RemoteStorage
|
||||
end
|
||||
|
||||
def url_for_directory(user, directory)
|
||||
if directory.empty?
|
||||
container_url_for(user)
|
||||
else
|
||||
"#{container_url_for(user)}/#{escape(directory)}"
|
||||
end
|
||||
end
|
||||
|
||||
def base_url
|
||||
@base_url ||= settings.swift["host"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user