OSS-DocumentScanner icon indicating copy to clipboard operation
OSS-DocumentScanner copied to clipboard

[FEATURE REQUEST] Syncing and File rename

Open schlackenfuchs opened this issue 1 year ago • 5 comments

I like this app very much! One feature would make it perfect:

When a file is renamed in the app the new name doesn't appear in sync order. It appears only the choosen time format. When a file is renamed in sync order it will be synced again next time (so you have it twice in sync order: one with old, one with new name).

Would it be possible to include the new file name in syncing process?

schlackenfuchs avatar Nov 15 '24 10:11 schlackenfuchs

@schlackenfuchs thanks! What do you mean by sync order? The issue is that if you change to name of a document it is not synced with remote (like webdav)?

farfromrefug avatar Nov 15 '24 20:11 farfromrefug

@farfromrefug Thanks for your fast reply! And sorry for my incomprehensible post... No, renamed documents are synced, but (1) they loose their name, if they are renamed before syncing, or (2) they will be synced again, if they are renamed in sync folder. For a better understanding a short description what I do and the results:

1

  • I scan one document. The file is named as defined in settings | document naming template.
  • For a better overview I rename some files in the app via long press | rename.
  • When I sync the documents, I can find them in the folder defined in settings | sync | sync document images | folder (in my case a folder on the device).
  • In this sync folder the documents have the name as defined in settings | sync | sync document images | filename date format, so they loose the name from step 2 above.

or

2

  • I scan one document. The file is named as defined in settings | document naming template.
  • I sync the documents.
  • For a better overview I rename some files in the sync folder.
  • Next time the sync process can't find the original file in sync folder (because it has a new name), so that file comes second time...

Clearer now?

It would be helpful if the sync process would regard the new file name. Or is there already such an option, but I didn't see it?

schlackenfuchs avatar Nov 16 '24 10:11 schlackenfuchs

I found a solution for me: Syncing not the document images, but the document PDFs allows to use the document name. That is what I need. Thanks a lot for that really helpfull app! Best regards

schlackenfuchs avatar Nov 17 '24 12:11 schlackenfuchs

@schlackenfuchs thanks for the great explanation! i see your issue. Indeed syncing image cant really use the document name as their could be multiple images. I could do documentName_$imageIndex. Seems like a good idea will look at it

farfromrefug avatar Nov 18 '24 08:11 farfromrefug

@schlackenfuchs sorry to come back so late to this ... In the next version. synced images will be named documentName_$imageIndex. The only drawback is that i can say that i need to remove old named files so you might end up with duplicate images if you update a page.

farfromrefug avatar Feb 05 '25 13:02 farfromrefug