[FEATURE] Folder creation with new library
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.
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
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.