fixed BUG-78 (deleted recursively too far - took out parent_dir), also deleting from the viewer page works with Delete key too. Removed debugs in viewer for fullscreen

This commit is contained in:
2022-01-14 13:49:39 +11:00
parent 3678a5892f
commit bd7cae6037
4 changed files with 22 additions and 40 deletions

25
BUGs
View File

@@ -1,28 +1,5 @@
### Next: 78
### Next: 79
BUG-56: when making a viewing list of AI:mich, (any search?) and going past the page_size, it gets the wrong data from the DB for the 'next' entry
BUG-60: entries per page (in folders view) ignores pagesize, and this also contributes to BUG-56 I think
BUG-74: search/others? remembers start/offset, and if you reset view (e.g. another search) it doesnt show first page of results
BUG-77: when moving folders out from a parent folder (storage/2020 off-camera-to-oct), it did not delete the empty 2020 off-camera-to-oct folder
BUG-78: restoring files tried to delete .pa_bin dir (and some subdirs, but files were actually in there still from a PREVIOUS del now not in the DB)
RUNNING job: id=22 name=restore_files wait_for=None
DEBUG: INFO: Starting Restore Files job...
DEBUG: Restored file: copy1.jpg to static/Import/new_img_dir
CleanUpDirInDB(): checking dir: static/Bin/.pa_bin/Import/new_img_dir (40)
There is content (first entry: copy2.jpg) in static/Bin/.pa_bin/Import/new_img_dir - finished for this dir
DEBUG: Restored file: copy2.jpg to static/Import/new_img_dir
CleanUpDirInDB(): checking dir: static/Bin/.pa_bin/Import/new_img_dir (40)
Dir static/Bin/.pa_bin/Import/new_img_dir - 40 is empty - removing it
ERROR: Failed to remove dir from filesystem - which=static/Bin/.pa_bin/Import/new_img_dir, err: [Errno 39] Directory not empty: 'static/Bin/.pa_bin/Import/new_img_dir'
DEBUG: INFO: Removing static/Bin/.pa_bin/Import/new_img_dir from system as removing duplicates has left it empty
Dir static/Bin/.pa_bin/Import/new_img_dir is in static/Bin/.pa_bin/Import (39) -> check next
CleanUpDirInDB(): checking dir: static/Bin/.pa_bin/Import (39)
Dir static/Bin/.pa_bin/Import - 39 is empty - removing it
ERROR: Failed to remove dir from filesystem - which=static/Bin/.pa_bin/Import, err: [Errno 39] Directory not empty: 'static/Bin/.pa_bin/Import'
DEBUG: INFO: Removing static/Bin/.pa_bin/Import from system as removing duplicates has left it empty
Dir static/Bin/.pa_bin/Import is in static/Bin/.pa_bin (1) -> check next
CleanUpDirInDB(): checking dir: static/Bin/.pa_bin (1)
Dir static/Bin/.pa_bin - 1 is empty - removing it
ERROR: Failed to remove dir from filesystem - which=static/Bin/.pa_bin, err: [Errno 20] Not a directory: 'static/Bin/.pa_bin'
DEBUG: INFO: Removing static/Bin/.pa_bin from system as removing duplicates has left it empty
DEBUG: Finished restoring selected file(s)