I’ve written a webdav integration with Owncloud for rclone and it works very well. However I haven’t added checksum support yet - I’d like a bit of guidance if possible.
I see that Owncloud appears to store the SHA1 hashes on the objects. For instance when I HEAD an object I see
I found some documentation for this: https://doc.owncloud.org/desktop/2.4/architecture.html#upload
Will this always be an SHA1? Or do I have to retrieve the server properties to check the supported values? rclone support SHA-1 and MD5 so either of those would be great, but I need to know at the start of a sync which are supported.
Is it possible to retrieve the SHA-1 as a webdav property? This would be most convenient then I could retrieve it in the listings rather than having to do a HEAD request to retrieve it off the object headers?
Thanks for any help and apologies if I’ve missed the bits in the docs.