Revert "Fix listing of a user's root directory"
This reverts commit 1cf99377dc7ecf26fd2d5b43c03f615d82876d13.
This commit is contained in:
parent
671d3d5fd5
commit
3ce3efd0fc
@ -78,11 +78,7 @@ module RemoteStorage
|
||||
end
|
||||
end
|
||||
|
||||
res = if directory.empty?
|
||||
do_get_request("#{container_url_for(user)}/?format=json")
|
||||
else
|
||||
do_get_request("#{container_url_for(user)}/?format=json&path=#{escape(directory)}/")
|
||||
end
|
||||
res = do_get_request("#{container_url_for(user)}/?format=json&path=#{escape(directory)}/")
|
||||
|
||||
if body = JSON.parse(res.body)
|
||||
listing = directory_listing(body)
|
||||
@ -282,11 +278,7 @@ module RemoteStorage
|
||||
end
|
||||
|
||||
def url_for_directory(user, directory)
|
||||
if directory.empty?
|
||||
container_url_for(user)
|
||||
else
|
||||
"#{container_url_for(user)}/#{escape(directory)}"
|
||||
end
|
||||
"#{container_url_for(user)}/#{escape(directory)}"
|
||||
end
|
||||
|
||||
def base_url
|
||||
|
Loading…
x
Reference in New Issue
Block a user