MCPcopy Create free account
hub / github.com/Super-long/ChubbyGo / InitFileOperation

Function InitFileOperation

BaseServer/lockserver.go:39–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func InitFileOperation() *FileOperation {
40 Root := &FileOperation{}
41
42 Root.pathToFileSystemNodePointer = make(map[string]*FileSystemNode)
43
44 Root.root = InitRoot()
45
46 //log.Printf("DEBUG : Current pathname is %s\n", Root.root.nowPath)
47
48 return Root
49}
50
51// 如果把这个放在Kvraft中fileSystem操作时会非常麻烦
52var RootFileOperation = InitFileOperation()

Callers 1

lockserver.goFile · 0.85

Calls 1

InitRootFunction · 0.85

Tested by

no test coverage detected