Perform file operations via http

Plug-in and third party software discussion.
Post Reply
ochompsky
Posts: 14
Joined: Wed May 31, 2017 9:21 pm

Perform file operations via http

Post by ochompsky »

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?
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Perform file operations via http

Post by void »

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.
ochompsky
Posts: 14
Joined: Wed May 31, 2017 9:21 pm

Re: Perform file operations via http

Post by ochompsky »

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.
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.

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.
Post Reply