nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.29k stars 1.77k forks source link

Watch folders for deleted files and delete from Nextcloud #3534

Open Terrox opened 5 years ago

Terrox commented 5 years ago

Is your feature request related to a problem? Please describe.

Currently I can use Markor to edit notes and those are synced when I open Nextcloud Client and sync the folder. But If I delete a file outside Nextcloud Client that file will just be restored by Nextcloud Client sync.

Describe the solution you'd like

A watched folder like the AutoUpload folder which will also delete files.

Describe alternatives you've considered

Syncthing

Additional context

I would use this to handle external note editor app syncing so I can delete a note via native android methods or 3rd party app without having to delete in the Nextcloud Client app.

nextcloud-android-bot commented 5 years ago

GitMate.io thinks possibly related issues are https://github.com/nextcloud/android/issues/2281 ([Deleted]), https://github.com/nextcloud/android/issues/2382 (Delete multiple files), https://github.com/nextcloud/android/issues/975 (Showing deleted files), https://github.com/nextcloud/android/issues/2574 (crash on file delete), and https://github.com/nextcloud/android/issues/1048 (Nextcloud android app does not move or delete original files).

tobiasKaminsky commented 5 years ago

If you click "sync" on a folder it performs a 2-way sync, so yes this is intended. For your special case you could manually add an auto upload folder, but then you will still have to delete the files locally.

AndyScherzinger commented 5 years ago

Also, with 3.5.0 of the Nextcloud app, in case https://github.com/gsantner/markor would make use of the document provider implementation this would all work out-of-the-box and also instantly.

Terrox commented 5 years ago

@AndyScherzinger Where is the spec for that?

AndyScherzinger commented 5 years ago

@tobiasKaminsky can you answer this question? :)

tobiasKaminsky commented 5 years ago

@Terrox what do you mean with spec? The Document Provider is supplied by Android's SDK: https://developer.android.com/guide/topics/providers/create-document-provider

Usage is to use an app that can open files from document storage provider and then browse to NC's files and use them.

Terrox commented 5 years ago

@tobiasKaminsky I mean I don't know much about this but I'd like to make the Markor guy's job a bit easier with a reference :) .