Return indexes of which the files do not exist.
(self)
| 106 | return self.uids[i] |
| 107 | |
| 108 | def get_invalid_idxs(self): |
| 109 | """Return indexes of which the files do not exist.""" |
| 110 | # check if file exists |
| 111 | invalid_indexes = [] |
| 112 | for i in range(len(self.filenames)): |
| 113 | if not os.path.exists(self.filenames[i]): |
| 114 | invalid_indexes.append((i)) |
| 115 | return invalid_indexes |
| 116 | |
| 117 | def _read_index_file(self, index_filename: str, with_uid: bool, root_dir: str): |
| 118 | """Read the index file and returns the uids and filenames.""" |
nothing calls this directly
no outgoing calls
no test coverage detected