rclone/backend/webdav
Henning 1f3778dbfb webdav: sharepoint recursion with different depth - fixes #2426
this change adds the depth parameter to listAll and readMetaDataForPath.
this allows recursive calls of these methods with a different depth
header.

Sharepoint won't list files if the depth header is != 0. If that is the
case, it will just return a error 404 although the file exists.
Since it is not possible to determine if a path should be a file or a
directory, rclone has to make a request with depth = 1 first. On success
we are sure that the path is a directory and the listing will work.
If this request returns error 404, the path either doesn't exist or it
is a file.

To be sure, we can try again with depth set to 0. If it still fails, the
path really doesn't exist, else we found our file.
2018-08-04 11:02:47 +01:00
..
api webdav: show all available information when printing errors 2018-05-11 08:43:53 +01:00
odrvcookie webdav: support SharePoint cookie authentication 2018-04-20 21:43:54 +01:00
webdav_test.go Make integration tests use go1.7+ nested tests #2154 2018-04-08 15:04:14 +01:00
webdav.go webdav: sharepoint recursion with different depth - fixes #2426 2018-08-04 11:02:47 +01:00