Skip to content

Commit

Permalink
feat(#3341): Use join in path builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-stefani committed Feb 7, 2023
1 parent 2558694 commit 6d1872f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ def get_filename(self, *args, **kwargs) -> str:
str: Synthetic filename.
"""
now = datetime.utcnow()
path = f"{self.BASE_PATH}{now.strftime(cons.PATH_DATE_FORMAT)}/"
path = join(self.BASE_PATH, now.strftime(cons.PATH_DATE_FORMAT))
name = f"{self.BASE_FILE_NAME}{now.strftime(cons.FILENAME_DATE_FORMAT)}{cons.JSON_EXT}"

return f'{path}{name}'
return join(path, name)

def get_data_sample(self) -> str:
"""Returns a sample of data according to the KMS format.
Expand Down

0 comments on commit 6d1872f

Please sign in to comment.