관리-도구
편집 파일: ntpath.cpython-311.pyc
� c��fv � �Z � d Z dZdZdZdZdZdZdZdZdd l Z dd l Z dd lZdd lZdd lT g d�Z d� Z dd lmZmZmZ d� Zn# e$ r d� ZY nw xY wd� Zd� Zd� Zd� Zd� Zej j e_ d� Zd� Zd� Z d� Z! ddl"m#Z# n # e$ r d Z#Y nw xY wd� Z$d� Z%d� Z& ddl"m'Z' d� Z(n# e$ r d� Z(Y nw xY wd � Z) dd!l"m*Z* d"� Z+n # e$ r e)Z+Y nw xY w dd#l"m,Z,m-Z. d$� Z/d%� Z0d&d'�d(�Z1n # e$ r e+Z1Y nw xY w e2e d)� � o e j3 � � d* d+k Z4d/d,�Z5d-� Z6 dd.l"m7Z8 d S # e$ r Y d S w xY w)0z�Common pathname manipulations, WindowsNT/95 version. Instead of importing this module directly, import os and refer to this module as os.path. �.�..�\�;�/z.;C:\bin�nul� N)�*)&�normcase�isabs�join� splitdrive�split�splitext�basename�dirname�commonprefix�getsize�getmtime�getatime�getctime�islink�exists�lexists�isdir�isfile�ismount� expanduser� expandvars�normpath�abspath�curdir�pardir�sep�pathsep�defpath�altsep�extsep�devnull�realpath�supports_unicode_filenames�relpath�samefile�sameopenfile�samestat� commonpathc �4 � t | t � � rdS dS )N� \/�\/)� isinstance�bytes��paths �-/opt/alt/python311/lib64/python3.11/ntpath.py� _get_bothsepsr8 # s � ��$���� ��v��u� )� LCMapStringEx�LOCALE_NAME_INVARIANT�LCMAP_LOWERCASEc � � t j | � � } | s| S t | t � � rnt j � � }| � |d� � � dd� � } t t t | � � } | � |d� � S t t t | � dd� � � � S )�nNormalize case of pathname. Makes all characters lowercase and all slashes into backslashes. �surrogateescaper r )�os�fspathr3 r4 �sys�getfilesystemencoding�decode�replace�_LCMapStringEx�_LOCALE_NAME_INVARIANT�_LCMAP_LOWERCASE�encode)�s�encodings r7 r r 3 s� � � �I�a�L�L��� ��H��a���� 8��0�2�2�H�����#4�5�5�=�=�c�4�H�H�A��5�/��4� 4�A��8�8�H�&7�8�8�8�!�"8�"2�"#�)�)�C��"6�"6�8� 8� 8r9 c �< � t j | � � } t | t � � rLt j t j | � � � dd� � � � � � � S | � dd� � � � � S )r>