Closed
Description
Specs
To same storage
- Check the destination not the target folder's sub folders.(Prevent circular structure)
- Calculate which folders and notes are needed to be moved.
- Create folders to new destination.
- Update
folderPathname
of the notes. - Delete the old folders.
To other storage
Almost same to To same storage
specs. But we should ask if users want to copy or move the folder.
- (Circular structure won't be happen in this case. So we don't need to check destination)
- Calculate which folders and notes are needed to be moved.
- Create folders to new destination.
- Copy all notes to other storage with updated
folderPathname
prop - Delete the old folders if user choose moving