backslash should not be path-sep when using swiftclient under windows

Bug #1511813 reported by Dirk Petersen on 2015-10-30
This bug affects 3 people
Affects Status Importance Assigned to Milestone
James Nzomo

Bug Description

When I use python-swiftclient under windows (v. 2.60 Python 3.4 x64), the path separator for pseudo folders is a backslash


I am not sure if this behavior was intended but it will break every other GUI client trying to access the data uploaded using the python swift client.

perhaps os.sep should be set to '/' when initially walking through the file system.

Dirk Petersen (q-petersen) wrote :

os.sep or os.path.sep appear to be read only?

this hack works for me but there may be more elegant ways:

Changed in python-swiftclient:
assignee: nobody → sanket lawangare (sanket-lawangare-d)
Matt Hanlon (matthanlon) wrote :

I don't think this bug involves needing to change the path separator. Rather paths for upload should not be constructed with os.join, they should always use "/" as the separator even on windows.

This issue renders python-swiftclient command line rather useless on windows.

Changed in python-swiftclient:
assignee: sanket lawangare (sanket-lawangare-d) → nobody
Changed in python-swiftclient:
importance: Undecided → Medium
Christian Schwede (cschwede) wrote :

There is already a patch up for review:

Changed in python-swiftclient:
status: New → Confirmed
James Nzomo (moje) on 2016-02-17
Changed in python-swiftclient:
assignee: nobody → James Nzomo (moje)

Fix proposed to branch: master

Changed in python-swiftclient:
status: Confirmed → In Progress
Dirk Petersen (q-petersen) wrote :

Any desire to move this one along. Just tested the latest swift client and it seems my ol hack from last year is still required.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers