Improved the performance of gam <UserTypeEntity> print filelist when showmimetype and filepath|fullpath are both specified.

This commit is contained in:
Ross Scroggs
2024-03-03 14:18:17 -08:00
parent 1989d72f4f
commit a3b814f758
5 changed files with 21 additions and 10 deletions

View File

@@ -53624,7 +53624,8 @@ def printFileList(users):
DLP.GetFileIdEntity()
if not fileIdEntity['shareddrive']:
cleanFileIDsList(fileIdEntity, [ROOT, ORPHANS])
noSelect = False
if maxdepth != -1:
noSelect = False
elif not fileIdEntity:
fileIdEntity = DLP.GetFileIdEntity()
elif not buildTree:
@@ -53634,7 +53635,7 @@ def printFileList(users):
and not fileIdEntity['shareddrivefilequery']
and _simpleFileIdEntityList(fileIdEntity['list']))
incrementalPrint = buildTree and (not filepath) and noSelect and not DLP.locationSet and not showParent
if incrementalPrint:
if buildTree and noSelect and not DLP.locationSet and not showParent:
DLP.AddMimeTypeToQuery()
if buildTree:
if not fileIdEntity.get('shareddrive'):