A
A
Alexander2014-07-28 06:52:17
Android
Alexander, 2014-07-28 06:52:17

Android Google Drive - check folder before creating - HOW?

Hello!
I am using Android Google API (google play service).
Before creating a directory, I want to check for the existence of something like this. But I can't figure out how. Everywhere in the source, a line of an approximate form is used:

DriveId fileIdObj = DriveId.createFromResourceId("0B0CnV_gvF2TgMTJhcFFZX3NtZGc");

Those. you need to know the id of the folder. But I don't know it yet, because the folder hasn't been created yet. Judging by the examples, this can be found out after the catalog has been created. How to check if a directory exists before creating it?
If you just create a folder several times, then the creation goes like this:
Folder
Folder (1)
Folder (2)
....
I ask for your help and sorry for the confusion.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
m3dad, 2014-07-28
@m3dad

I'm not a programmer, but if you make sure that a folder is created first, and then the program analyzes it and gives out an ID, no?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question