protected function set_file_attr_recursive( $file, $attr, $value ) {

		if ( 'dir' === $file->type ) {

			foreach ( $file->contents as $sub => $atts ) {
				$this->set_file_attr_recursive( $atts, $attr, $value );
			}
		}

		$file->$attr = $value;
	}
protected function set_file_attr_recursive( $file, $attr, $value ) {

		if ( 'dir' === $file->type ) {

			foreach ( $file->contents as $sub => $atts ) {
				$this->set_file_attr_recursive( $atts, $attr, $value );
			}
		}

		$file->$attr = $value;
	}
protected function set_file_attr_recursive ( $ file , $ attr , $ value ) { if ( 'dir' === $ file -> type ) { foreach ( $ file -> contents as $ sub => $ atts ) { $ this -> set_file_attr_recursive ( $ atts , $ attr , $ value ) ; } } $ file -> $ attr = $ value ; }
Set the value of file attribute recursively.

@since 0.1.0

@param object $file  The file data.
@param string $attr  The attribute to set.
@param mixed  $value The new value for this attribute.

@return bool True if the attribute value was set, false otherwise.
Set the value of file attribute recursively .