Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTTP API to retrieve all file statuses for a given folder #476

Closed
meejah opened this issue Jul 7, 2021 · 0 comments · Fixed by #478
Closed

Add HTTP API to retrieve all file statuses for a given folder #476

meejah opened this issue Jul 7, 2021 · 0 comments · Fixed by #478
Labels
enhancement New feature or request

Comments

@meejah
Copy link
Collaborator

meejah commented Jul 7, 2021

GridSync needs, at minimum, the size of every file in a folder in order to be able to ask ZKAPAuthorizer how many storage-time credits will be used to store those files.

Add an endpoint returning the status of every file in a folder. Currently, that status only needs to include the size.

Something like GET /v1/magic-folder/<folder-name>/file-status or similar. Returning data like:

{
    "rel/path": {
        "size": 1234
    }
}
@meejah meejah added the enhancement New feature or request label Jul 7, 2021
@meejah meejah added this to the private-storage milestone Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant