Skip to content

Commit

Permalink
Fixed GoogleDrive handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
dterefe committed Aug 9, 2024
1 parent 29c7f03 commit b687c63
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ public List<DUUIDocument> listDocuments(List<String> paths, String fileExtension

public List<DUUIDocument> listDocuments_(String searchPath, String fileExtension) throws IOException {

String fileExtension_ = fileExtension.isEmpty() ? "" : String.format("and fileExtension = '%s'", fileExtension);
String fileExtension_ = fileExtension.isEmpty() ?
"" : String.format("and fileExtension = '%s'", fileExtension.replace(".", ""));
FileList result = service.files().list()
.setQ(searchPath + " and mimeType != 'application/vnd.google-apps.folder' " + fileExtension_)
.setFields("files(id, name, size)")
Expand Down

0 comments on commit b687c63

Please sign in to comment.