first-pass of deleting a file moving to the bin instead, not in right spot on FS/ path&rel_path, and no visualisation yet

This commit is contained in:
2021-05-24 07:42:08 +10:00
parent 74943f6112
commit 8dc98dd368
2 changed files with 45 additions and 25 deletions

6
TODO
View File

@@ -1,16 +1,18 @@
## GENERAL
* on start up, should validate the import/storage/recycle bin paths exist and spit an error if they dont
* dont process duplicates from Bin
* issue where someone could call IP .../Imp/photos and SP .../Sto/photos and then static/photos is ambiguous:
-- DONE: make path prefix by static/<ptype.name>/ so that files are in: static/<ptype.name>/in_path.pp/dir.rel_path/
-- then deleting below would just path_prefix from static/storage to .pa_bin/storage, etc.
-- need to create the subdir if it does not exist in recycle_bin_path
*** THINK: should bin be a normal path/dir name, and in static too -- I think it will be easier in hindsight -- so need to change dst_dir when os.replace is used
-- need to be able to view recycle bin (should be simple when we have path_types) &&& should able to consolidate the files_ip/files_sp/files_rb? route handling functions
-- could also allow undelete per file / show content as another Files->View and more like storage (i.e. show folders)
* storage_path viewing needs to be by folder / not a big grab bag of files (by default - DONE)
-- BUG: issue with view by Day, etc. we print out day even if the Entry is not in the cwd
-- TODO: Need to toggle the view if I want, and when viewing storage area, change single-click to be view file again, and right-click to be my context menu
* import_path can be folder view and works (need toggle as above)
* * import_path can be folder view and is DONE but needs toggle as above
* need a way for search results to show we found something in import_path or storage_path:
- now we can use the in_path, then have a series of icons, e.g. disk for storage, ? for import, and bin for recycling (before the blue path)--maybe even show different colours, e.g. info for import, primary for storage and danger for bin?
* handle thumbs:
@@ -18,6 +20,8 @@
and potentially other stuff like .pa_bin if its in storage/import folder?
* AddJobForLog can absorb DEBUGs, etc. in fact fix up logging in general
* comment your code
* more OO goodness :)
## DB
Need to think about...