diff --git a/dap/utils/bufjson.py b/dap/utils/bufjson.py index 50d61b4..d986729 100644 --- a/dap/utils/bufjson.py +++ b/dap/utils/bufjson.py @@ -41,10 +41,16 @@ class BufferedJSON: return {} return json_load(self.fname, *args, **kwargs) + def exists(self): if not self.fname: + log.warning("filename not given") return False - return os.path.exists(self.fname) + + res = os.path.exists(self.fname) + if not res: + log.warning(f"{self.fname} does not exist") + return res