(self, paths)
| 64 | return path |
| 65 | |
| 66 | def get_file_info(self, paths): |
| 67 | info = [] |
| 68 | for path in paths: |
| 69 | if "file" in path: |
| 70 | info.append(FileInfo(path, FileType.File)) |
| 71 | elif "dir" in path: |
| 72 | info.append(FileInfo(path, FileType.Directory)) |
| 73 | elif "notfound" in path: |
| 74 | info.append(FileInfo(path, FileType.NotFound)) |
| 75 | elif "badtype" in path: |
| 76 | # Will raise when converting |
| 77 | info.append(object()) |
| 78 | else: |
| 79 | raise IOError |
| 80 | return info |
| 81 | |
| 82 | def get_file_info_selector(self, selector): |
| 83 | if selector.base_dir != "somedir": |
no test coverage detected