mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
Support UF2 drives with space in their name on Linux
Some devices, such as Seeed Studio XIAO with Adafruit bootloader, use complex names for UF2 device. With this fix applied, /proc/mounts should be parsed correctly
This commit is contained in:
@@ -1033,9 +1033,10 @@ func findFATMounts(options *compileopts.Options) ([]mountPoint, error) {
|
|||||||
if fstype != "vfat" {
|
if fstype != "vfat" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
fspath := strings.ReplaceAll(fields[1], "\\040", " ")
|
||||||
points = append(points, mountPoint{
|
points = append(points, mountPoint{
|
||||||
name: filepath.Base(fields[1]),
|
name: filepath.Base(fspath),
|
||||||
path: fields[1],
|
path: fspath,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return points, nil
|
return points, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user