(file *FileInfo, op FileOption)
| 205 | } |
| 206 | |
| 207 | func handleExpansion(file *FileInfo, op FileOption) error { |
| 208 | if file.IsDir { |
| 209 | return file.listChildren(op) |
| 210 | } |
| 211 | |
| 212 | if !file.IsDetail { |
| 213 | return file.getContent() |
| 214 | } |
| 215 | |
| 216 | return nil |
| 217 | } |
| 218 | |
| 219 | func (f *FileInfo) search(search string, count int) (files []FileSearchInfo, total int, err error) { |
| 220 | cmd := exec.Command("find", f.Path, "-name", fmt.Sprintf("*%s*", search)) |
no test coverage detected