()
| 37 | } |
| 38 | |
| 39 | func 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操作时会非常麻烦 |
| 52 | var RootFileOperation = InitFileOperation() |