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

More solid Windows root path #483

Open
chevah-robot opened this issue Feb 6, 2014 · 0 comments
Open

More solid Windows root path #483

chevah-robot opened this issue Feb 6, 2014 · 0 comments

Comments

@chevah-robot
Copy link

T1975 task was created by adiroiban on 2014-02-06 20:24:51Z.
Last changed on 2014-09-18 10:00:39Z.

Right now, c:\ is the hardcoded root path on Windows.

chevah.compat.nt_filesystem.NTFilesystem._getRootPath

Some systems might now have c drive and in this case our server will fail miserably.

Here is an idea in using GetWindowsDirectory

http://stackoverflow.com/questions/4768877/get-the-windows-installation-drive-using-python

Maybe we don't need windows directory but GetDataDirectory or something like this.

Also, maybe we can talk about windows filesystem and how it is used in our project to have a common filesystem access.


Another problem is that for unlocked fs :

fs.getRealPathFromSegments([]) return c:\

but

fs.getFolderMembers([]) return a list of local drives (including c:)

This needs to be fixed... but I don't know how.


Maybe also check #2010 for some more strage bevahiour

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

No branches or pull requests

1 participant