Skip to content

[FEATURE] Folder creation with new library #819

@xelab04

Description

@xelab04

Is your feature request related to a problem?

When creating a library, I get to choose the directory in which the books will be placed. However, I am unable to create a new folder from the UI.

Describe the solution you'd like

A way to either just modify the path, or have a button to create a folder?

I assume this part could be modified, so there's a flag sent from the frontend which notifies to create the path if it does not exist.

if !path::Path::new(&input.path).exists() {
	return Err(APIError::BadRequest(format!(
		"The library directory does not exist: {}",
		input.path
	)));
}

Describe alternatives you've considered

For the time being, I exec into the container and create the directory manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions