deleting a note won't delete parent folder anymore if no contents

This commit is contained in:
Gamosoft 2025-11-18 17:30:02 +01:00
parent ce28edec6b
commit a9ebdf0ab5
1 changed files with 1 additions and 5 deletions

View File

@ -225,11 +225,7 @@ def delete_note(notes_dir: str, note_path: str) -> bool:
full_path.unlink() full_path.unlink()
# Remove empty parent directories # Note: We don't automatically delete empty folders to preserve user's folder structure
try:
full_path.parent.rmdir()
except OSError:
pass # Directory not empty, that's fine
return True return True