spf13 / afero

A FileSystem Abstraction System for Go
Apache License 2.0
5.8k stars 498 forks source link

MemMapFs does not handle mode bits #338

Open jxsl13 opened 2 years ago

jxsl13 commented 2 years ago

I'm kind of testing around with my BackupFs implementation that also utilizes the Afero.Fs interface in order to implement a backup on write mechanism.

While writing my tests I have noticed that either memmapfs.Chmod is not properly working or memmapfs.Stat is not properly working.

Either way I do get a file mode of 0x0 of type os.ModeTemporary when Stat'ing /Lstat'ing paths.