Skip to content

Commit fadd305

Browse files
committed
now there's a trailing slash, wrapping the shim in PurePosixPath call
1 parent a032cce commit fadd305

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sftpretty/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def drivedrop(filepath):
2424
filepath = filepath.encode('unicode_escape').decode()
2525
filepath = filepath.replace('\\', '/').replace('//', '/')
2626
elif filepath.startswith('//'):
27-
filepath = filepath.replace('//', '/')
27+
filepath = PurePosixPath(filepath.replace('//', '/')).as_posix()
2828

2929
return filepath
3030

0 commit comments

Comments
 (0)