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

FileBrowser doesn't show networked drives on Windows #16

Closed
ivanlan9 opened this issue Mar 8, 2019 · 1 comment
Closed

FileBrowser doesn't show networked drives on Windows #16

ivanlan9 opened this issue Mar 8, 2019 · 1 comment

Comments

@ivanlan9
Copy link

ivanlan9 commented Mar 8, 2019

This is a very easy fix:

About line 329 in FileBrowser.py, changed the line that reads

devices = psutil.disk_partitions()

to

devices = psutil.disk_partitions(all=True if OSNAME=="nt" else False)

Once this is done, mapped network drives on Windows show up properly. You don't want all=True on Linux, as that would get a bunch of non-useful items ('/sys/kernel/debug' and so on).

@j4321
Copy link
Owner

j4321 commented Mar 8, 2019

Thanks for the report and the fix, I am not using Windows so I was not aware of the issue.

@j4321 j4321 closed this as completed in #17 Mar 8, 2019
j4321 added a commit that referenced this issue Mar 8, 2019
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