Scripting of Drive API - force update filelist

Currently reading
Scripting of Drive API - force update filelist

1
0
Operating system
  1. Linux
Mobile operating system
  1. Android
Dear experts,

I am running for several month a bash script which preprocesses all my pdf documents.
The script roughly does following steps:
* OCR & rename file
* move file to drive folder by shell "mv" command
* tagging file with drive labels by drive api (GET/POST entry.cgi)

After moving the file to the correct drive folder I try to get the unique drive file ID for tagging.
To get the file ID I use a HTTP/GET command (entry.cgi, api=SYNO.SynoglogyDrive.Files, method=list,....)

Generally getting the file id works fine. But directly calling the GET command after I have moved the file into the drive folder does not.
(The file is not part of the requested file list)

I think it fails because drive did not already "consumed" the new file.

Does anybody has an idea to solve the issue? Maybe there is a command to force drive to "consume" the new file..maybe refreshing folders?

Thanks in advance!
Regards,
Ulli
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

I have Synology Drive 3.4.0 installed on a ds223j, and the 3.4.0 client on my MacBook Pro, running Sonoma...
Replies
0
Views
750
I set up Drive to sync all folders under "My Documents" on windows 10 machine and access them on my...
Replies
0
Views
340
  • Question
Thanks for your replies. fredbert's suggestion would work I guess, but the folders wouldn't be in my home...
Replies
3
Views
418
SOLVED It was, in face, the precious few 15 overlay slots allowed by Windows. I had installed something...
Replies
1
Views
525
1.) Python is the way: #%% import os from re import U, purge from dirsync import sync #%% #Task1...
Replies
1
Views
568
  • Solved
Finally found some info on this thread. So, to my understanding, it is impossible to use win/mac Drive...
Replies
1
Views
709
I just got done rebuilding windows and installed drive client. Everything seems fine. However, I remember...
Replies
0
Views
435

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top