Adding basement for the direct download url

refs https://github.com/owncloud/core/issues/12286

@dragotin @danimo @guruz @ogoffart @karlitschek @icewind1991 THX
Maybe return an empty array instead of `null` when not supported?