public function get_file_attr( $file, $attr, $type = null ) {

		$file_atts = $this->get_file( $file );

		if ( false === $file_atts || false === isset( $file_atts->$attr ) ) {
			return false;
		}

		if ( isset( $type ) && $type !== $file_atts->type ) {
			return false;
		}

		return $file_atts->$attr;
	}