Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paths are always converted to lowercase on windows #38

Closed
obmarg opened this issue Oct 15, 2012 · 1 comment
Closed

Paths are always converted to lowercase on windows #38

obmarg opened this issue Oct 15, 2012 · 1 comment

Comments

@obmarg
Copy link
Contributor

obmarg commented Oct 15, 2012

I've been using plumbum paths in a script i'm writing lately. My script uses local.cwd to find out the name of the current directory, then uses that to navigate to a path on a remote PC.

Unfortunately the script doesn't work at all when the local machine is windows, the remote is linux and the current directory name is not all lowercase. This seems to be because plumbum throws away case information from paths on windows.

For example:

>>> import os
>>> from plumbum import local
>>> os.getcwd()
'C:\\src\\NVR'
>>> local.cwd.basename
'nvr'

If I then try to use local.cwd.basename to navigate to the equivalent folder on my remote PC it will fail as the folder is actually named NVR rather than nvr.

@tomerfiliba
Copy link
Owner

closed in 304becf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants