Share a single item publicly #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(This is here mostly to keep track of API request syntax.)
Request for shared items from a folder (not useful?):
curl -u "adam:password" --header "OCS-APIRequest: true" 'https://theadamcooper.com/nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=public/2014_public&subfiles=true'
Request for all items from a folder:
There's a discrepancy between the path in the
href
field and the path required by the Nextcloud Shares API (see above). The solution is to use the Rust library for file paths to work with this data.The path in the
href
field needs to be stripped down through the username, leaving the path the user sees, for use in the Shares API.N.B.: Development of this feature has happened with the tree traversal work; there's no separate branch for this.