Comments (4)
Absolutely! No legacy Windows APIs are used. This may be seen as an incedibly crummy solution, but I now do the following on startup:
- Gather a list of Removable Drives (USB flash drives and DVD drive) from KnownFolders.RemovableDevices
- Loop through ALL possible drive letters (excluding C:), checking if they can be accessed.
- Those that do not throw an exception are added to a collection.
- Everything in this collection is added as a NavigationViewItem, but if its drive letter corresponds to one in the list from step one, it is displayed to the user as "Removable". (Otherwise, it's another Local Disk)
*This now excludes MTP devices because it requires some extra work to handle.
from files.
Hey there. I have a new solution coming very soon that addresses this problem. You'll be able to view everything that has a drive letter: partition, removable drive, or other local disks.
Here's a snip of my PC which currently has a two local disks, the usual DVD, and one USB drive plugged in. Files will be able to recognize all of these. However, phone visibility requires extra support which I'm disabling for now.
from files.
Maybe outside the context of this issue, but I'm just curious as to how you solved this? I know that there are a limited amount of traditional Win32 APIs available for access to UWP apps. Did you use something like GetLogicalDrives?
from files.
Now available in v0.4.7
from files.
Related Issues (20)
- "GenerateMSBuildEditorConfigFile" does not exist in the project HOT 7
- Update the discord server invite link HOT 5
- 'Save as...' dialog windows bugged HOT 5
- Pinned items not loading after File's first start after Windows booted HOT 3
- Bug: Items are displayed from the middle when opening a folder sorted by date HOT 3
- Feature: Add audio file bitrate to details pane HOT 6
- Code Quality: Broader SidebarView control usage HOT 1
- Latest release returned missing tagged folders bug HOT 5
- Bug: Focus is lost when changing tabs HOT 12
- Enhance Metadata Handling in Files: Display and Edit "Keywords" Metadata HOT 1
- Feature: Display list of files as preview for folders [Discussion] HOT 2
- Wait!!!!!!!!! A big thanks HOT 3
- The right-click options are very slow. HOT 10
- Feature: Support for theme packs HOT 1
- Bug: Renaming in the conflict dialog leaves the copy operation in process HOT 1
- Bug: Files doesn't open items by file name and uses selection order HOT 2
- Slow Loading Icon in the App File HOT 3
- Feature: Splitting translation for background settings HOT 7
- My files started to crash on my Win11 today. I used it for a few days and this only start today. when I open, it freezes and then disappears, everytime. any fix for it? HOT 2
- Crashed and shutdown HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from files.