Skip to content

Commit

Permalink
Fix path join bug
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedamen committed Jul 4, 2021
1 parent d004b4a commit c9be891
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions findatapy/market/ioengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,14 +1021,22 @@ def path_exists(self, path):
def path_join(self, folder, file):
if 's3://' in folder:
folder = folder.replace("s3://", "")
folder = folder + file
folder = folder + "/" + file

folder = folder.replace("//", "/")

return "s3://" + folder
folder = "s3://" + folder

else:
return os.path.join(folder, file)
if file[0] == '/':
file = file[1::]

folder = os.path.join(folder, file)

folder = folder.replace("\\\\", "/")
folder = folder.replace("\\", "/")

return folder

#######################################################################################################################

Expand Down

0 comments on commit c9be891

Please sign in to comment.