mirror of
https://github.com/NixOS/nix
synced 2025-06-26 03:21:16 +02:00
StorePath::new(): Check store directory
This commit is contained in:
parent
410acd29c0
commit
14d82baba4
3 changed files with 10 additions and 3 deletions
|
@ -34,7 +34,8 @@ pub extern "C" fn ffi_StorePath_new(
|
|||
path: &str,
|
||||
store_dir: &str,
|
||||
) -> Result<StorePath, error::CppException> {
|
||||
StorePath::new(std::path::Path::new(path), store_dir).map_err(|err| err.into())
|
||||
StorePath::new(std::path::Path::new(path), std::path::Path::new(store_dir))
|
||||
.map_err(|err| err.into())
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue