stump icon indicating copy to clipboard operation
stump copied to clipboard

[FEATURE] Folder creation with new library

Open xelab04 opened this issue 1 month ago • 2 comments

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.

xelab04 avatar Nov 10 '25 05:11 xelab04

I'm curious what your use-case is for wanting a library created before you actually have any media (or even the root folder). Is it just a convenience thing?

I try to be cautious when considering any features which involve some kind of write access to data

aaronleopold avatar Nov 10 '25 15:11 aaronleopold

I was thinking of creating a library, with a certain folder, then being able to upload media to the library and it going into the folder I specified/had created initially.

xelab04 avatar Nov 11 '25 10:11 xelab04