RaSan147 / pyrobox

Turn your computer into Local File Hosting Server. Improved version on Python 3 http.server with Upload and LOTS of FEATURES. In short a home/office remote File-Manager
MIT License
43 stars 8 forks source link

[IDEA] on download folder, scan directory for changes #50

Closed RaSan147 closed 1 year ago

RaSan147 commented 1 year ago

On 1st time zipping, scan the directory and write .json file {"file name hash": "last modified", ....} And keep it side by side with .zip file in temp folder.

On 2nd run, match the folder with .json and if modified, create new zip (will not delete older because might be in use) however will rewrite the .json

On side by side run, keep track on 1st run, then check for 2nd run, if unchanged, return 1st one handler.

NOTE: in future add cache management per user, so after zipping and downloading user can delete his .zip from temp folder... Maybe. Bcz might be in use by other. So don't do it.....

RaSan147 commented 1 year ago

Fixed locally. Will update soon