aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sleep_register.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sleep_register.rs b/src/sleep_register.rs
index b103b4c..8d9d99e 100644
--- a/src/sleep_register.rs
+++ b/src/sleep_register.rs
@@ -274,8 +274,7 @@ impl SleepDirRegister {
true,
)?);
}
- let data_path = &(prefix.to_owned() + ".data");
- let data_path = Path::new(data_path);
+ let data_path = &directory.join(Path::new(&(prefix.to_owned() + ".data")));
let data_file = if data_path.is_file() {
Some(OpenOptions::new()
.read(true)