Commit 24f47aa
committed
platform: Fix Windows mount failure on drive letter creation
The default mountpoint selection started from A:, which is reserved for
floppy drives on Windows. When the selected drive letter did not exist,
mount_fuse() called mountpoint.mkdir() on it, causing a FileNotFoundError
because Windows does not allow creating directories named after drive
letters -- WinFsp handles that internally.
Fix both issues:
- Start the free drive letter search at D:, skipping the legacy floppy
drives (A:/B:) and the system drive (C:).
- Return True from should_auto_create_mountpoint() on Windows so that
mount_fuse() skips the mkdir call entirely, letting WinFsp set up the
drive letter mount.1 parent a35b0ab commit 24f47aa
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 35 | + | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
0 commit comments