(path string)
| 269 | } |
| 270 | |
| 271 | func (c *systemService) GetDirPathOne(path string) (m model.Path) { |
| 272 | f, err := os.Stat(path) |
| 273 | if err != nil { |
| 274 | return |
| 275 | } |
| 276 | m.IsDir = f.IsDir() |
| 277 | m.Name = f.Name() |
| 278 | m.Path = path |
| 279 | m.Size = f.Size() |
| 280 | m.Date = f.ModTime() |
| 281 | return |
| 282 | } |
| 283 | |
| 284 | func (c *systemService) GetDirPath(path string) ([]model.Path, error) { |
| 285 | if path == "/DATA" { |