M
M
Maksoldinho2021-04-15 21:58:27
Java
Maksoldinho, 2021-04-15 21:58:27

How to make a java program scan the contents of a folder in google drive and open the desired folder?

Hello everybody! I am a complete newbie to java and I wanted to make an "application" that will analyze the presence of google spreadsheets in a folder and open them if they are. Since I'm stupid, I still didn't understand how to do this, I climbed a lot of sources, but it didn't help me. If you help I will be glad, and if you also explain how you did it, then I will be incredibly grateful. Attached is a picture of my "problem".

60788b7d9d1fb877982404.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan, 2021-04-16
@Maksoldinho

Good afternoon!
It would be nice to clarify whether you want to write a GUI application or just a cli application.
If the GUI - you can use JavaFX, and if the cli, then for example, jcommander
Working with Google Drive is done through the API.
Of course, you need to create an application in the Google Console and add the resulting api key or service key to your application.
https://developers.google.com/drive/api/v3/quickst...

an application that will analyze the presence of Google Spreadsheets in a folder, and if they are available, open them

Here, it says how to search:
https://developers.google.com/drive/api/v3/search-files
You need to search by MIME-type and select only tables and display a list of all found files.
And then for example. by clicking on the file name, download it using:
https://developers.google.com/drive/api/v3/manage-...
In short, something like this. Learn Java then learn the Google Drive API

D
Dimonchik, 2021-04-15
@dimonchik2013

it’s easier to rob cows
java is not a python, you can’t solve it with easy writing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question