
    Mh0                     L    d dl Z d dlZe j        d             ZddZddZd ZdS )    Nc              #      K   t          j                    }t          j        |            	 |V  t          j        |           dS # t          j        |           w xY w)z9A context manager for operating in a different directory.N)osgetcwdchdir)dirnameorigs     W/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/debugpy/_vendored/_util.pycwdr
   	   sT       9;;DHW



s   A Ac              #   x   K   | g}|r2|                     d          }t          ||||          D ]}|V  |0dS dS )zYield (dirname, basename, filename) for each file in the tree.

    This is an alternative to os.walk() that flattens out the tree and
    with filtering.
    r   N)pop_iter_files)root	prune_direxclude_filependingr   results         r	   iter_all_filesr      sl       fG
 ++a..!'7I|LL 	 	FLLLL          c              #      K   | g}|rQ|                     d          }g }t          ||||          D ]\  }}}|                    ||f           ||fV  |OdS dS )zYield (dirname, files) for each directory in the tree.

    The list of files is actually a list of (basename, filename).

    This is an alternative to os.walk() with filtering.r   N)r   r   append)	r   r   r   r   r   files_bfs	            r	   	iter_treer   !   s       fG
 ++a.."7GYMM 	! 	!GAq!LL!Q    un      r   c              #   ,  K   t          j        |           D ]|}t           j                            | |          }t           j                            |          r%| || |          rP|                    |           f| || |          ru| ||fV  }d S )N)r   listdirpathjoinisdirr   )r   subdirsr   r   basenamefilenames         r	   r   r   0   s      Jw'' 
. 
.7<<227=="" 	.$7H)E)E$NN8$$$$ 'LL(,K,K'8X-----
. 
.r   )NN)
contextlibr   contextmanagerr
   r   r   r    r   r	   <module>r'      s|   
     				   
 
 
 
   . . . . .r   