770
770
with self.lock_read():
771
771
root_ie = self._get_dir_ie(u"", None)
772
772
if include_root and not from_dir:
773
yield "", "V", root_ie.kind, root_ie.file_id, root_ie
773
yield "", "V", root_ie.kind, root_ie
774
774
dir_ids[u""] = root_ie.file_id
776
776
path_iterator = sorted(
806
806
if self._has_dir(encoded_path):
807
807
ie = self._get_dir_ie(path, self.path2id(path))
810
809
elif self.is_ignored(path):
812
811
ie = fk_entries[kind]()
816
814
ie = fk_entries[kind]()
819
posixpath.relpath(path, from_dir), status, kind,
815
yield (posixpath.relpath(path, from_dir), status, kind,
822
818
if value is not None:
823
819
ie = self._get_file_ie(name, path, value, dir_ids[parent])
824
yield (posixpath.relpath(path, from_dir), "V", ie.kind,
820
yield (posixpath.relpath(path, from_dir), "V", ie.kind, ie)
827
822
ie = fk_entries[kind]()
828
yield (posixpath.relpath(path, from_dir), ("I" if
829
self.is_ignored(path) else "?"), kind, None, ie)
823
yield (posixpath.relpath(path, from_dir),
824
("I" if self.is_ignored(path) else "?"), kind, ie)
831
826
def all_file_ids(self):
832
827
raise errors.UnsupportedOperation(self.all_file_ids, self)