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

Deleting root-node gives issues #12

Open
Anonym-Bruker opened this issue Feb 25, 2019 · 0 comments
Open

Deleting root-node gives issues #12

Anonym-Bruker opened this issue Feb 25, 2019 · 0 comments

Comments

@Anonym-Bruker
Copy link

Anonym-Bruker commented Feb 25, 2019

When uploading a file with the command like this:
remarkable.php upload /path1/path2/path3/filename.txt
the script correctly creates all the directories path1->path2->path3 with the name inside path3. This worked excellent.

But then I tried to delete "path1" directly, without deleting the sub-directories.
This delete is not "recursive", so the sub-directories seem to still exist, and then seems to lead to some corruption.
When I tried to run the "remarkable.php list"-command, it gave an error message about wrong metadata (Don't remember the exact error message)

But if I deleted all the path2, path3 and the file inside path3, the list-command worked again, and it seems that I cleaned everything up.

=>
Please consider one of two options:

  1. Don't allow to delete directories that are not empty
  2. Make the delete-command recursive to delete everything

Else, love the php-"app"!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant