fs-over-http icon indicating copy to clipboard operation
fs-over-http copied to clipboard

impr: a simple shell

Open XWasHere opened this issue 3 years ago • 3 comments
trafficstars

this pr adds a small shell that can upload, download and delete files + list and create directories

it also makes a minor change of setting the mime type of directories to application/x-directory

XWasHere avatar May 25 '22 03:05 XWasHere

ok so i'm sure i look like a massive idiot, but i forgot that i had suggested the mime types for folders change a while ago but it got rejected, and seeing as this change depends on that, i'm going to close this pr.

XWasHere avatar May 25 '22 16:05 XWasHere

i believe that this should work most of the time without changing the content type, i added a parse_dir function to check if the response is a directory listing. it won't work if it receives a file that looks identical to a directory but i doubt that would be a problem under normal circumstances.

XWasHere avatar May 26 '22 19:05 XWasHere

I'll take a look at this when I have time, thanks

5HT2 avatar May 27 '22 05:05 5HT2