Fixing terrible bug where directories and files were interchanged
This commit is contained in:
parent
adb06273ab
commit
378154d5a3
4
dir.go
4
dir.go
@ -63,12 +63,12 @@ func (this versionedDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for name, dir := range this.dirs {
|
for name, dir := range this.dirs {
|
||||||
entry := fuse.Dirent{Inode: dir.inode, Name: name, Type: fuse.DT_File}
|
entry := fuse.Dirent{Inode: dir.inode, Name: name, Type: fuse.DT_Dir}
|
||||||
entries = append(entries, entry)
|
entries = append(entries, entry)
|
||||||
}
|
}
|
||||||
|
|
||||||
for name, file := range this.files {
|
for name, file := range this.files {
|
||||||
entry := fuse.Dirent{Inode: file.inode, Name: name, Type: fuse.DT_Dir}
|
entry := fuse.Dirent{Inode: file.inode, Name: name, Type: fuse.DT_File}
|
||||||
entries = append(entries, entry)
|
entries = append(entries, entry)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user