copy/move notes when changing the notes path
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 738
- Forks
- 162
- Avg merge
- 6h 2m
- Merged PRs (30d)
- 35
Description
Describe the bug
When changing the storage location existing notes get deleted.
Actually, the old "Notes" directory remains, but the txt-files wont moved to the new location.
To Reproduce
Steps to reproduce the behavior:
- create at least one note
- Change "Folder to save your notes" to e.g. "Documents/Notes"
- all previously created notes are gone
- Look at the HD on the old location: all note-files are existing
Expected behavior
All Existing notes gets copied to the new location.
Server (please complete the following information):
- Notes app version: 3.0.3
- Nextcloud version: 16.0.5
- OS: Raspbian 9.11 (Kernel: 4.19.57-v7+)
- Web server: apache2
- PHP version: 7.3.9
- Database: mysql 10.1.38
Client (please complete the following information):
- Browser (incl. version): Google Chrome (mobile) 77.0.3865.92
- OS: Android 7.1.1
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the implementation of the “Folder to save your notes” setting and the handling that runs when its value changes. Reproduce the report with an existing .txt note, then verify that changing the setting leaves the note available in the new location without losing existing files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100