NewFileSystemHandler return a Handler based on the given dir.
(root string)
| 19 | |
| 20 | // NewFileSystemHandler return a Handler based on the given dir. |
| 21 | func NewFileSystemHandler(root string) Handler { |
| 22 | return &fileSystemHandler{ |
| 23 | root: filepath.Clean(root), |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func (h *fileSystemHandler) chtimes(path string, mtime, atime int64) error { |
| 28 | if mtime == 0 || atime == 0 { |
no outgoing calls
searching dependent graphs…