def di_is_link(interp, this): if this.w_dir_res.index < this.w_dir_res.no_of_items: item = _di_pathname(this) else: item = this.path assert item is not None return _is_link(interp.space, item)
def is_link(interp, this): filename = this.file_name assert filename is not None return _is_link(interp.space, filename)