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)