(path)
| 38 | walk(path, dirs, files, walk_prefix) |
| 39 | |
| 40 | def listdir(path): |
| 41 | dirs, files, links = [], [], [] |
| 42 | for name in os.listdir(path): |
| 43 | path_name = os.path.join(path, name) |
| 44 | if os.path.isdir(path_name): |
| 45 | dirs.append(name) |
| 46 | elif os.path.isfile(path_name): |
| 47 | files.append(name) |
| 48 | elif os.path.islink(path_name): |
| 49 | links.append(name) |
| 50 | return dirs, files, links |
| 51 | |
| 52 | def enumerate2(sequence): |
| 53 | length = len(sequence) |
no test coverage detected