(token uint64, filename string)
| 431 | } |
| 432 | |
| 433 | func (Fsn *FileSystemNode) CheckToken(token uint64, filename string) error{ |
| 434 | Node, IsExist := Fsn.next[filename] |
| 435 | |
| 436 | if !IsExist { |
| 437 | log.Printf("INFO : %s/%s does not exist.\n", Fsn.nowPath, filename) |
| 438 | return ChubbyGoFileSystemError(PathError) |
| 439 | } |
| 440 | |
| 441 | if Node.tokenSeq == token{ |
| 442 | return nil |
| 443 | } else { |
| 444 | return ChubbyGoFileSystemError(TokenSeqError) |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | /* |
| 449 | * @brief: Debug用,显示当前目录树的全部文件名 |
nothing calls this directly
no test coverage detected