(fsType fs.FilesystemType, current string)
| 1658 | } |
| 1659 | |
| 1660 | func browse(fsType fs.FilesystemType, current string) []string { |
| 1661 | if current == "" { |
| 1662 | return browseRoots(fsType) |
| 1663 | } |
| 1664 | |
| 1665 | parent, base := filepath.Split(current) |
| 1666 | ffs := fs.NewFilesystem(fsType, parent) |
| 1667 | files := browseFiles(ffs, base) |
| 1668 | for i := range files { |
| 1669 | files[i] = filepath.Join(parent, files[i]) |
| 1670 | } |
| 1671 | return files |
| 1672 | } |
| 1673 | |
| 1674 | const ( |
| 1675 | matchExact int = iota |
no test coverage detected