[IDEA] on download folder, scan directory for changes
Closed this issue · 1 comments
RaSan147 commented
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
Fixed locally. Will update soon