Os.path.join() problem

Hey everyone, I have the following code:

os.path.join(https://python.engineering/python-os-path-join-method/)('/data/dir/current/', todaystr, '/current_new/')

The only thing that is stored is /current_new/
Any ideas… what am I doing wrong ?

UPD checked up with this os path join manual…

You have given 2 absolute path, remove / from last parameter.
os.path.join(’/data/dir/current/’, todaystr, ‘current_new/’)

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.