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

  • Question
Following thread too as 6 months ago I removed it on one NAS, and had no issues?
Replies
5
Views
659
Using Drive Client 3.4.0 on Win 10. By default, it seems like the client is copying my entire home profile...
Replies
0
Views
527
I found a way to revert syncing the entire Home folders, back to only syncing the Drive subfolder...
Replies
0
Views
562
The person abroad still get's the same error. I on the other hand have 0 issues connecting through...
Replies
5
Views
883
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
1,382
I set up Drive to sync all folders under "My Documents" on windows 10 machine and access them on my...
Replies
0
Views
757
  • Question
Thanks for your replies. fredbert's suggestion would work I guess, but the folders wouldn't be in my home...
Replies
3
Views
813

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Back
Top