File: //lib64/python3.9/distutils/__pycache__/filelist.cpython-39.opt-1.pyc
a
    �DOg 2  �                   @   s�   d Z ddlZddlZddlZddlZddlmZ ddlmZm	Z	 ddl
mZ G dd� d�Zdd	� Z
ejfd
d�Zdd
� Zddd�ZdS )zsdistutils.filelist
Provides the FileList class, used for poking about the filesystem
and building lists of files.
�    N��convert_path)�DistutilsTemplateError�DistutilsInternalError)�logc                   @   s|   e Zd ZdZddd�Zdd� Zejfdd�Zd	d
� Z	dd� Z
d
d� Zdd� Zdd� Z
dd� Zdd� Zddd�Zddd�ZdS ) �FileLista�  A list of files built by on exploring the filesystem and filtered by
    applying various patterns to what we find there.
    Instance attributes:
      dir
        directory from which files will be taken -- only used if
        'allfiles' not supplied to constructor
      files
        list of filenames currently being built/filtered/manipulated
      allfiles
        complete list of files under consideration (ie. without any
        filtering applied)
    Nc                 C   s   d | _ g | _d S �N)�allfiles�files)�self�warn�debug_print� r   �*/usr/lib64/python3.9/distutils/filelist.py�__init__   s    zFileList.__init__c                 C   s
   || _ d S r   )r	   )r   r	   r   r   r   �set_allfiles#   s    zFileList.set_allfilesc                 C   s   t |�| _d S r   )�findallr	   )r   �dirr   r   r   r   &