Skip to content

Extension relies on existance of ~/.duckdb dir #203

@patricklucas

Description

@patricklucas

It's possible that the ~/.duckdb dir doesn't exist, even when the UI extension is installed, because it may have been installed elsewhere through calling SET extension_directory = '...'.

This code in ui_extension.cpp, however, expects it to exist:

  auto &fs = FileSystem::GetFileSystem(instance);
  fs.CreateDirectory(fs.ExpandPath("~/.duckdb/extension_data"));
  fs.CreateDirectory(fs.ExpandPath("~/.duckdb/extension_data/ui"));

A quick fix would just be to add an additional call to CreateDirectory to create ~/.duckdb if it doesn't exist, though we should also consider respecting an alternate DuckDB home dir set using set home_directory = '...'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestextensionPertaining to the UI extension code, which is in this repository.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions