def dir():
        """Return the list of patched function names. Used for patching
        functions imported from the module.
        """
        dir = [
            'access', 'chdir', 'chmod', 'chown', 'close', 'fstat', 'fsync',
            'getcwd', 'lchmod', 'link', 'listdir', 'lstat', 'makedirs',
            'mkdir', 'mknod', 'open', 'read', 'readlink', 'remove',
            'removedirs', 'rename', 'rmdir', 'stat', 'symlink', 'umask',
            'unlink', 'utime', 'walk', 'write'
        ]
        if IS_PY2:
            dir += ['getcwdu']
        else:
            dir += ['getcwdb', 'replace']
            if sys.platform.startswith('linux'):
                dir += [
                    'fdatasync', 'getxattr', 'listxattr',
                    'removexattr', 'setxattr'
                ]
        if use_scandir:
            dir += ['scandir']
        return dir
def dir ( ) : dir = [ 'access' , 'chdir' , 'chmod' , 'chown' , 'close' , 'fstat' , 'fsync' , 'getcwd' , 'lchmod' , 'link' , 'listdir' , 'lstat' , 'makedirs' , 'mkdir' , 'mknod' , 'open' , 'read' , 'readlink' , 'remove' , 'removedirs' , 'rename' , 'rmdir' , 'stat' , 'symlink' , 'umask' , 'unlink' , 'utime' , 'walk' , 'write' ] if IS_PY2 : dir += [ 'getcwdu' ] else : dir += [ 'getcwdb' , 'replace' ] if sys . platform . startswith ( 'linux' ) : dir += [ 'fdatasync' , 'getxattr' , 'listxattr' , 'removexattr' , 'setxattr' ] if use_scandir : dir += [ 'scandir' ] return dir
Return the list of patched function names. Used for patching
        functions imported from the module.