mardi 25 mars 2014

Get the first children folder(s) on a selected folder


Vote count:

0




I want to just return the children folder of a specfic folder in Google Drive SDK. If I have the following structure



mainfolder -> //id:1234567
testing1 ->
actuafile.png
testing.png
testing2 ->
banass.png
testing3 ->


My testing code so far but it print all the files, it includes the testing1,testing2.. and the actuafile.png,testing.png...



var request = gapi.client.drive.files.list({
'q': "'1234567' in parents"
});

request.execute(function(r){
console.log(r);
});


How can I limit to just the first folder(s)?



asked 3 mins ago

CezarisLT

1,124





Aucun commentaire:

Enregistrer un commentaire