(path string)
| 173 | }) |
| 174 | } |
| 175 | func (h *fileHandler) CreateDir(path string) error { |
| 176 | path = h.JoinPath(path) |
| 177 | if err := os.MkdirAll(path, 0755); err != nil { |
| 178 | return errors.Errorf("Create path failed to create path %s, got error: %v", path, err) |
| 179 | } |
| 180 | return nil |
| 181 | } |
| 182 | |
| 183 | type fileSyncer struct { |
| 184 | fp *os.File |