public function add_file_to_pool($pathname, $contenthash = null, $newrecord = null) {
        $this->call_before_file_created_plugin_functions($newrecord, $pathname);
        return $this->filesystem->add_file_from_path($pathname, $contenthash);
    }