Skip to content

Commit

Permalink
fix: don't match volume label when reading FAT32 directories
Browse files Browse the repository at this point in the history
  • Loading branch information
nkraetzschmar committed Dec 2, 2024
1 parent 15ebb7b commit 75b1edb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions filesystem/fat32/fat32.go
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,10 @@ func (fs *FileSystem) readDirWithMkdir(p string, doMake bool) (*Directory, []*di
// do we have an entry whose name is the same as this name?
found := false
for _, e := range entries {
// don't match volume label
if e.isVolumeLabel {
continue
}
// if the filename does not match, continue
// match is determined by any one of:
// - long filename == provided name
Expand Down

0 comments on commit 75b1edb

Please sign in to comment.