Allow optimization of directoryList() to only get data needed

Description

This is very similar to https://luceeserver.atlassian.net/browse/LDEV-3698

This code, when run on a very large directory of files:

spends most of its time getting the following data:

  • lucee.commons.io.res.type.file.FileResource.isHidden()

  • lucee.commons.io.res.type.file.FileResource.isWriteable()

  • lucee.commons.io.res.type.file.FileResource.lastModified()

  • lucee.commons.io.res.type.file.FileResource.length()

This data is all returned in the query object, but many times I know I won't be using most of the data. It would be nice to be able to specify the columns to be returned and have Lucee optimize the file system access to not retrieve the unused data. Then I can choose what I want returned and nothing more.

Activity

Show:

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 1 September 2021 at 15:42
Updated 1 September 2021 at 16:00