GDriveFileStorage: show hidden files (Drive Client marks all files hidden but no way to remove flag?)

This commit is contained in:
Philipp Crocoll 2013-11-02 04:45:39 +01:00
parent 34bca0834f
commit 17bfc0c975

View File

@ -437,7 +437,7 @@ public class GoogleDriveFileStorage extends JavaFileStorageBase {
throw new FileNotFoundException(parentPath + " is trashed!"); throw new FileNotFoundException(parentPath + " is trashed!");
Files.List request = driveService.files().list() Files.List request = driveService.files().list()
.setQ("trashed=false and hidden=false and '"+parentId+"' in parents"); .setQ("trashed=false and '"+parentId+"' in parents");
do { do {
try { try {
@ -715,7 +715,7 @@ public class GoogleDriveFileStorage extends JavaFileStorageBase {
HashMap<String, FileSystemEntryData> folderCache = new HashMap<String, GoogleDriveFileStorage.FileSystemEntryData>(); HashMap<String, FileSystemEntryData> folderCache = new HashMap<String, GoogleDriveFileStorage.FileSystemEntryData>();
//Log.d(TAG,"buildFoldersCache"); //Log.d(TAG,"buildFoldersCache");
FileList folders=getDriveService(accountName).files().list().setQ("mimeType='"+FOLDER_MIME_TYPE+"' and trashed=false and hidden=false") FileList folders=getDriveService(accountName).files().list().setQ("mimeType='"+FOLDER_MIME_TYPE+"' and trashed=false")
.setFields("items(id,title,parents),nextPageToken") .setFields("items(id,title,parents),nextPageToken")
.execute(); .execute();
for(File fl: folders.getItems()){ for(File fl: folders.getItems()){