function Finder::sortByChangedTime
Sorts files and directories by the last inode changed time.
This is the time that the inode information was last modified (permissions, owner, group or other metadata).
On Windows, since inode is not available, changed time is actually the file creation time.
This can be slow as all the matching files and directories must be retrieved for comparison.
Return value
$this
See also
File
-
vendor/
symfony/ finder/ Finder.php, line 551
Class
- Finder
- Finder allows to build rules to find files and directories.
Namespace
Symfony\Component\FinderCode
public function sortByChangedTime() : static {
$this->sort = SortableIterator::SORT_BY_CHANGED_TIME;
return $this;
}