0
votes

I'm using searchFiles function in my Google apps script to search files on Google Drive, which match the given search criteria.

I put code as follows:

  var folders = DriveApp.getFolderById(folder).searchFolders(
      "not title contains '(Orden)'"
    );

By the way, it searches not only files whose title doesn't contain '(Orden)', but also 'order'.

e.g.

  • Compra de ordenador
  • Ordenes de medicamentos

How should I modify code in order to search files whose title doesn't contain only '(Orden)' case-sensitive.

Thank you in advance for your help.

1

1 Answers

0
votes

The Google Drive q parameter or file search is case insensitive. There is currently no way to make a case sensitive search Orden, ORDEN, orden are all going to be returned.