Hi with the current HTTP server, you can only download files. It would be nice to be able to rename/delete files (even maybe upload them).
However, within the confines of the current SDK, I don't see this as a possibility. The only alternative I see would be to create a seperate API and then modify the existing HTTP webpage template to do rename/delete by sending the file path to the separate API to do the actual operation.
Before I go out and design it, can you please confirm that what I want is not doable with the current SDK alone?
Perform file operations via http
Re: Perform file operations via http
Currently, the HTTP server is read-only.
I will consider support for renaming/deleting files.
I have plans to open source the Everything HTTP server plugin for the Everything 1.5 release.
The SDK will simply allow you to get a list of filenames.
It might be difficult to sync this list with what is on the actual disk after you have renamed/deleted a file.
It may take 1 second+ for the SDK list to update.
I will consider support for renaming/deleting files.
I have plans to open source the Everything HTTP server plugin for the Everything 1.5 release.
The SDK will simply allow you to get a list of filenames.
It might be difficult to sync this list with what is on the actual disk after you have renamed/deleted a file.
It may take 1 second+ for the SDK list to update.
Re: Perform file operations via http
Thanks for the response. Yeah, I was not sure how it would behave after the deletion but I can do some experimenting. For my usecase, it's not urgent for an immediate update, a delay is acceptable.void wrote: ↑Tue Jun 11, 2024 11:53 pm Currently, the HTTP server is read-only.
I will consider support for renaming/deleting files.
I have plans to open source the Everything HTTP server plugin for the Everything 1.5 release.
The SDK will simply allow you to get a list of filenames.
It might be difficult to sync this list with what is on the actual disk after you have renamed/deleted a file.
It may take 1 second+ for the SDK list to update.
When 1.5 is out with open sourced server, i'll try to add it in there and post it for others to use if im successful.