From 015ba27c3300ea0df04bdfe586df9b9ad35801e8 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Wed, 12 Feb 2025 15:37:14 -0500 Subject: [PATCH] Use os.path.join() where possible --- lib/nexrad/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nexrad/archive.py b/lib/nexrad/archive.py index 53883c6..7491b41 100644 --- a/lib/nexrad/archive.py +++ b/lib/nexrad/archive.py @@ -11,10 +11,10 @@ class Archive(): self.bucket = bucket def is_archived(self, key: str): - return os.path.exists(self.path + '/' + key) + return os.path.exists(os.path.join(self.path, key)) def archive(self, key: str): - path = self.path + '/' + key + path = os.path.join(self.path, key) parent = os.path.dirname(path) os.makedirs(parent, exist_ok=True)