예제 #1
0
 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
예제 #2
0
 def fskip_stats_symlinks(parent, path, stat, usertargets, userdata):
     if FS.is_lnk(stat):
         return True
     return False