ni / labview-gdrive

LabVIEW wrapper for the .NET Google Drive API
MIT License
10 stars 11 forks source link

Searching a specific folder #17

Open TimClaridge opened 5 years ago

TimClaridge commented 5 years ago

This has to do with the max 99 file issue. The existing VI's are only able to return a max of 99 files. This was pointed out in https://github.com/ni/labview-gdrive/issues/3 where smXplorer found a work around. Unfortunately this method scans through all the files in a drive and it takes forever to run.

I've been successful in searching for a specific folder

https://forums.ni.com/t5/LabVIEW/Using-Google-Drive-API-How-to-read-and-use-a-net-API/m-p/3935066/highlight/false?profile.language=en

But i cant figure out how to use this to then search through those specific folders to list their files.

I also thought this might have to do with the fact that the current GDrive VIs using v3 (1.14.0.543) rather than the newer v3 (1.40.1.1610) i see in the google docs (https://developers.google.com/drive/api/v3/reference/files/list) that driveID could be used for this, but i cant seem to access it when using LabVIEW. a side question could be , how do i update to the v3 ( 1.40..)

Does anyone have any suggestions ?

smXplorer commented 5 years ago

If you are suspecting the API version, you have to download the latest one here: https://www.nuget.org/packages/Google.Apis.Drive.v3/ Then install it: https://docs.microsoft.com/en-us/nuget/consume-packages/overview-and-workflow and finally copy the dll used in the library in the project folder. Do you mind sharing your strategy (VIs) to look into a specific folder?