File manager - Edit - /opt/cloudlinux/venv/lib/python3.11/site-packages/pyfakefs/__pycache__/fake_scandir.cpython-311.pyc
Back
� �|oi# � � � d Z ddlZddlZddlmZmZ G d� dej � � Z G d� d� � Zdd �Z d � Z dd �ZdS )z�A 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_string�make_string_pathc �h � e Zd ZdZd� Zd� Zdd�Zdd�Zd� Zdd�Z d � Z ej d k rde fd�Zd 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 )z�Initialize the dir entry with unset values. Args: filesystem: the fake filesystem used for implementation. � NF) �_filesystem�name�path�_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 �stat�r s r �inodezDirEntry.inode. s&