2240
2240
if not path.startswith(prefix):
2242
2242
path = path[len(prefix):]
2243
yield path, 'V', entry.kind, entry.file_id, entry
2243
yield path, 'V', entry.kind, entry
2245
2245
if from_dir is None and include_root is True:
2246
root_entry = inventory.make_entry('directory', '',
2247
ROOT_PARENT, self.get_root_id())
2248
yield '', 'V', 'directory', root_entry.file_id, root_entry
2246
root_entry = inventory.make_entry(
2247
'directory', '', ROOT_PARENT, self.get_root_id())
2248
yield '', 'V', 'directory', root_entry
2249
2249
entries = self._iter_entries_for_dir(from_dir or '')
2250
2250
for path, entry in entries:
2251
yield path, 'V', entry.kind, entry.file_id, entry
2251
yield path, 'V', entry.kind, entry
2253
2253
def kind(self, path):
2254
2254
trans_id = self._path2trans_id(path)