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;
	}