def fskip_stats_rootfs(parent, path, stat, usertargets, userdata): if FS.is_lnk(stat): return False if FS.is_mount(path): if FS.is_sysmount(path): return True # skip system mounts userdata['root'] = path elif 'root' in parent.userdata: userdata['root'] = parent.userdata['root'] else: userdata['root'] = FS.rootpath(path) return False
def fskip_stats_symlinks(parent, path, stat, usertargets, userdata): if FS.is_lnk(stat): return True return False