wp-admin/includes/class-wp-filesystem-direct.php:128Changes the file group.
$filestring$groupstring|int$recursivebooloptionalfalsebool public function chgrp( $file, $group, $recursive = false ) { if ( ! $this->exists( $file ) ) { return false; } if ( ! $recursive ) { return chgrp( $file, $group ); } if ( ! $this->is_dir( $file ) ) { return chgrp( $file, $group ); } // Is a directory, and we want recursive. $file = trailingslashit( $file ); $filelist = $this->dirlist( $file ); if ( false === $filelist ) { return false; } foreach ( $filelist as $file_listing ) { $this->chgrp( $file . $file_listing['name'], $group, $recursive ); } return true; }Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-admin/includes/class-wp-filesystem-direct.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.