Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note attachment folders are not removed when empty #3167

Open
manuel-koch opened this issue Jul 26, 2019 · 0 comments
Open

Note attachment folders are not removed when empty #3167

manuel-koch opened this issue Jul 26, 2019 · 0 comments
Labels
improvement request 🔨 Issue concerns an existing feature that needs improvement.

Comments

@manuel-koch
Copy link

Current behavior

Creating a new note, adding one attachment file, re-edit note remove the attachment-link, attachment file in storage is removed but the parent directory is still there.

I have now several of those empty attachment folders in my storage-location.

Expected behavior

I guess the attachment-folder is per note, thus if a note has no more attachments, then I would expect that folder is removed too.

Steps to reproduce

  1. Create a new note.
  2. Drop a file on the note, a link is created in the note referring attachment.
  3. Go to some other note.
  4. Check the storage-location contains a new directory incl a copy of file that was dropped on note.
  5. Go back to former note and edit it again, remove the attachment-link.
  6. Leave edit mode of note and wait some time.
  7. Check the storage-location, the former attachment file is removed but the parent directory still exists.

Environment

  • Version : 0.12.0
  • OS Version and name : MacOS 10.14.5
  • Storage location is a locally synced, shared OneDrive folder
@Flexo013 Flexo013 added the improvement request 🔨 Issue concerns an existing feature that needs improvement. label Jul 26, 2019
@Flexo013 Flexo013 changed the title note attachment folders are not cleaned up Note attachment folders are not removed when empty Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement request 🔨 Issue concerns an existing feature that needs improvement.
Projects
None yet
Development

No branches or pull requests

2 participants