Work in progress
This commit is contained in:
parent
da6a548629
commit
fd52a205a3
19
version.go
19
version.go
@ -58,18 +58,21 @@ func (this versionedDir) Attr(attr *fuse.Attr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this versionedDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) {
|
func (this versionedDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) {
|
||||||
// var entries []fuse.Dirent
|
var entries []fuse.Dirent
|
||||||
// for name, dir := range versionedDir {
|
|
||||||
// entry := fuse.Dirent{Inode: dir.
|
for name, dir := range this.dirs {
|
||||||
// }
|
entry := fuse.Dirent{Inode: dir.inode, Name: name, Type: fuse.DT_File}
|
||||||
|
entries = append(entries, entry)
|
||||||
|
}
|
||||||
|
|
||||||
|
for name, file := range this.files {
|
||||||
|
entry := fuse.Dirent{Inode: file.inode, Name: name, Type: fuse.DT_Dir}
|
||||||
|
entries = append(entries, entry)
|
||||||
|
}
|
||||||
|
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// var dirDirs = []fuse.Dirent{
|
|
||||||
// {Inode: 2, Name: "hello", Type: fuse.DT_File},
|
|
||||||
// }
|
|
||||||
|
|
||||||
type version struct {
|
type version struct {
|
||||||
base string
|
base string
|
||||||
parent *version
|
parent *version
|
||||||
|
Loading…
Reference in New Issue
Block a user