B d Z ddlZddlZddlmZmZ G d dej Z G d d Zdd Z d Z dd ZdS )zA fake implementation for the `scandir` function working with FakeFilesystem. Works with both the function integrated into the `os` module since Python 3.5 and the standalone function available in the standalone `scandir` python package. N) to_stringmake_string_pathc h e Zd ZdZd Zd ZddZddZd ZddZ d Z ej d k rde fdZd S d S )DirEntryzNEmulates os.DirEntry. Note that we did not enforce keyword only arguments.c || _ d| _ d| _ d| _ d| _ d| _ d| _ d| _ d| _ dS )zInitialize the dir entry with unset values. Args: filesystem: the fake filesystem used for implementation. NF) _filesystemnamepath_abspath_inode_islink_isdir_statresult_statresult_symlink)self filesystems g/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pyfakefs/fake_scandir.py__init__zDirEntry.__init__ sL & #' c J | j | d | j S )z%Return the inode number of the entry.NF)follow_symlinks)r statr s r inodezDirEntry.inode. s&