summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/devices/file.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/file.rs b/src/devices/file.rs
index 2a00a59..d53db0b 100644
--- a/src/devices/file.rs
+++ b/src/devices/file.rs
@@ -185,6 +185,8 @@ impl FileDevice {
if let Some((_, path)) = &self.entry {
if let Some(parent_path) = path.parent() {
self.op_success = self.open_entry(&parent_path.to_owned()).is_ok();
+ } else {
+ self.op_success = false;
}
} else {
self.op_success = self.open_entry(&self.default_path.to_owned()).is_ok();