canonicalize() to fix race condition with cwd
This commit is contained in:
parent
89f6ea5335
commit
04932b2c77
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ pub fn init() {
|
|||
/// cleans up the directory on drop, so make sure to persist the variable until you're done with it
|
||||
pub fn make_test_album() -> Temp {
|
||||
let tmpdir = Temp::new_dir().unwrap();
|
||||
let source_path = Path::new("resources/test_album");
|
||||
let source_path = Path::new("resources/test_album").canonicalize().unwrap();
|
||||
|
||||
log::info!("Creating test album in {}", tmpdir.display());
|
||||
make_skeleton(&tmpdir.to_path_buf()).unwrap();
|
||||
|
|
Loading…
Add table
Reference in a new issue