alanbernstein / treemonger

disk usage visualizer
16 stars 2 forks source link

Add basic delete functionality #3

Closed alanbernstein closed 4 months ago

alanbernstein commented 4 months ago

Rather than running the filesystem scan in the main function, then passing the result to the rendering app, we pass the scanning function, along with the subdivision function, to the app. The app can then run both of these on-demand, e.g. for delete_file or refresh events.

This is MVP; the delete event reruns a full scan which is suboptimal and will be frustrating for large directory trees.