OwlCyberSecurity - MANAGER
Edit File: ntpath.pyc
� zfc��������$���@���sp��d��Z��d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�l�Td�d�l�m�Z�d�d�d�d�d �d �d�d�d �d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d �d!�d"�d#�d$�d%�d&�d'�d(�g$�Z�d)�Z�d*�Z �d)�Z �d+�Z�d,�Z�d-�Z �d.�Z�d/�e�j�k�rd0�Z�n�d1�e�j�k�r(d-�Z �n��d2�Z�d3����Z�d4����Z�d5����Z�d6����Z�d7����Z�d8����Z�d9����Z�e�j�j��e�_��d:����Z�d;����Z�d<����Z�e�Z�d=����Z�d>����Z�d?����Z �d@����Z!�dA����Z"�y�d�dB�l#�m$�Z$�Wn�e%�k �r�dC����Z&�n �XdD����Z&�e&�Z'�e(�e�dE���o,e�j)����dF�dG�k�Z*�dH����Z+�e�dI���Z,�y�d�dJ�l#�m-�Z.�Wn�e%�k �rkn�Xd�S(K���s����Common pathname manipulations, WindowsNT/95 version. Instead of importing this module directly, import os and refer to this module as os.path. i����N(���t���*(���t���_unicodet���normcaset���isabst���joint ���splitdrivet���splitt���splitextt���basenamet���dirnamet���commonprefixt���getsizet���getmtimet���getatimet���getctimet���islinkt���existst���lexistst���isdirt���isfilet���ismountt���walkt ���expandusert ���expandvarst���normpatht���abspatht���splitunct���curdirt���pardirt���sept���pathsept���defpatht���altsept���extsept���devnullt���realpatht���supports_unicode_filenamest���relpatht���.s���..s���\t���;t���/s���.;C:\bint���ces���\Windowst���os2t���nulc���������C���s���|��j��d�d���j����S(���sa���Normalize case of pathname. Makes all characters lowercase and all slashes into backslashes.R(���s���\(���t���replacet���lower(���t���s(����(����s���/usr/lib64/python2.7/ntpath.pyR���+���s����c���������C���s*���t��|����d�}��|��d�k�o)�|��d� d�k�S(���s���Test whether a path is absolutei���t����s���/\(���R���(���R.���(����(����s���/usr/lib64/python2.7/ntpath.pyR���8���s����c���������G���s��t��|����\�}�}�x��|�D]��}�t��|���\�}�}�|�ri�|�d�d�k�ri�|�sT�|�r]�|�}�n��|�}�q�nE�|�r��|�|�k�r��|�j����|�j����k�r��|�}�|�}�q�n��|�}�n��|�r��|�d�d�k�r��|�d�}�n��|�|�}�q�W|�r|�d�d�k�r|�r|�d�d�k�r|�t�|�S|�|�S(���s>���Join two or more pathname components, inserting "\" as needed.i����s���\/i����s���\t���:(���R���R-���R���(���t���patht���pathst���result_drivet���result_patht���pt���p_drivet���p_path(����(����s���/usr/lib64/python2.7/ntpath.pyR���?���s*���� c���������C���s��t��|����d�k�r��|��j�t�t���}�|�d�d�!t�d�k�r��|�d�d�!t�k�r��|�j�t�d���}�|�d�k�rv�d�|��f�S|�j�t�|�d���}�|�|�d�k�r��d�|��f�S|�d�k�r��t��|����}�n��|��|� |��|�f�S|�d�d�k�r��|��d� |��d�f�Sn��d�|��f�S(���s���Split a pathname into drive/UNC sharepoint and relative path specifiers. Returns a 2-tuple (drive_or_unc, path); either part may be empty. If you assign result = splitdrive(p) It is always true that: result[0] + result[1] == p If the path contained a drive letter, drive_or_unc will contain everything up to and including the colon. e.g. splitdrive("c:/dir") returns ("c:", "/dir") If the path contained a UNC path, the drive_or_unc will contain the host name and share up to but not including the fourth directory separator character. e.g. splitdrive("//host/computer/dir") returns ("//host/computer", "/dir") Paths cannot contain both a drive letter and a UNC path. i���i����i���i���i����R/���R0���(���t���lenR,���R ���R���t���find(���R5���t���normpt���indext���index2(����(����s���/usr/lib64/python2.7/ntpath.pyR���`���s����* c���������C���s����|��d�d�!d�k�r�d�|��f�S|��d�d�!}�|�d�k�sB�|�d�k�r��|��j��d�d ���}�|�j�d �d���}�|�d�k�r|�d�|��f�S|�j�d �|�d���}�|�|�d�k�r��d�|��f�S|�d �k�r��t�|����}�n��|��|� |��|�f�Sd�|��f�S(���s?��Split a pathname into UNC mount point and relative path specifiers. Return a 2-tuple (unc, rest); either part may be empty. If unc is not empty, it has the form '//host/mount' (or similar using backslashes). unc+rest is always the input path. Paths containing drive letters never have a UNC part. i���i���R0���R/���i����s���//s���\\s���\R(���i����(���R,���R9���R8���(���R5���t���firstTwoR:���R;���R<���(����(����s���/usr/lib64/python2.7/ntpath.pyR�������s���� c���������C���s����t��|����\�}�}��t�|����}�x(�|�rH�|��|�d�d�k�rH�|�d�}�q!�W|��|� |��|�}�}�|�}�x$�|�r��|�d�d�k�r��|�d� }�qg�W|�p��|�}�|�|�|�f�S(���s~���Split a pathname. Return tuple (head, tail) where tail is everything after the final slash. Either part may be empty.i���s���/\i����(���R���R8���(���R5���t���dt���it���headt���tailt���head2(����(����s���/usr/lib64/python2.7/ntpath.pyR�������s����c���������C���s���t��j�|��t�t�t���S(���N(���t���genericpatht ���_splitextR���R ���R!���(���R5���(����(����s���/usr/lib64/python2.7/ntpath.pyR�������s����c���������C���s���t��|����d�S(���s)���Returns the final component of a pathnamei���(���R���(���R5���(����(����s���/usr/lib64/python2.7/ntpath.pyR�������s����c���������C���s���t��|����d�S(���s-���Returns the directory component of a pathnamei����(���R���(���R5���(����(����s���/usr/lib64/python2.7/ntpath.pyR �������s����c���������C���s���t��S(���sN���Test for symbolic link. On WindowsNT/95 and OS/2 always returns false (���t���False(���R1���(����(����s���/usr/lib64/python2.7/ntpath.pyR�������s����c���������C���sR���t��|����\�}�}�|�r"�|�d�k�St�|����d�}�t�|���d�k�oQ�|�d�d�k�S(���s?���Test whether a path is a mount point (defined as root of drive)R/���R(���s���\i���i����s���/\(���R/���R(���s���\(���R���R���R8���(���R1���t���unct���restR5���(����(����s���/usr/lib64/python2.7/ntpath.pyR�������s ���� c���������C���s����t��j�d�d�d��y�t�j�|����}�Wn�t�j�k �r=�d�SX|�|�|��|���x<�|�D]4�}�t�|��|���}�t�|���rU�t�|�|�|���qU�qU�Wd�S(���sI��Directory tree walk with callback function. For each directory in the directory tree rooted at top (including top itself, but excluding '.' and '..'), call func(arg, dirname, fnames). dirname is the name of the directory, and fnames a list of the names of the files and subdirectories in dirname (excluding '.' and '..'). func may modify the fnames list in-place (e.g. via del or slice assignment), and walk will only recurse into the subdirectories whose names remain in fnames; this can be used to implement a filter, or to impose a specific order of visiting. No semantics are defined for, or required of, arg, beyond that arg is always passed to func. It can be used, e.g., to pass a filename pattern, or a mutable object designed to accumulate statistics. Passing None for arg is common.s4���In 3.x, os.path.walk is removed in favor of os.walk.t ���stackleveli���N(���t���warningst���warnpy3kt���ost���listdirt���errorR���R���R���(���t���topt���funct���argt���namest���name(����(����s���/usr/lib64/python2.7/ntpath.pyR�������s���� c���������C���s��|��d� d�k�r�|��Sd�t��|����}�}�x*�|�|�k��rS�|��|�d�k�rS�|�d�}�q*�Wd�t�j�k�rs�t�j�d�}�ns�d�t�j�k�r��t�j�d�}�nT�d�t�j�k�r��|��Sy�t�j�d�}�Wn�t�k �r��d�}�n�Xt�|�t�j�d���}�|�d�k�rt�t�|���|��d�|�!��}�n��|�|��|�S( ���sL���Expand ~ and ~user constructs. If user or $HOME is unknown, do nothing.i���t���~s���/\t���HOMEt���USERPROFILEt���HOMEPATHt ���HOMEDRIVER/���(���R8���RK���t���environt���KeyErrorR���R ���(���R1���R?���t���nt���userhomet���drive(����(����s���/usr/lib64/python2.7/ntpath.pyR�����s&���� c��� ���������s���d�|��k�r�d�|��k�r�|��Sd�d�l��}�|�j�|�j�d�}�t�|��t���ri�t�j����������f�d����}�n �d����}�d�}�d �}�t�|����}�x:|�|�k��r�|��|�}�|�d �k�r!|��|�d�}��t�|����}�y)�|��j�d ���}�|�d �|��|�d� }�Wq�t �k �r|�|�|��}�|�d�}�q�Xn�|�d�k�r�|��|�d�|�d�!d�k�r_|�|�}�|�d�}�q�|��|�d�}��t�|����}�y�|��j�d���}�Wn)�t �k �r�|�d�|��}�|�d�}�q�X|��|� }�y�|�|�|���}�Wq�t �k �r�|�d�|�d�}�q�Xn�|�d�k�r�|��|�d�|�d�!d�k�r=|�|�}�|�d�}�q�|��|�d�|�d�!d �k�r�|��|�d�}��t�|����}�yW�|��j�d���}�|��|� }�y�|�|�|���}�Wn#�t �k �r�|�d�|�d�}�n�XWq�t �k �r�|�d�|��}�|�d�}�q�Xq�d�}�|�d�}�|��|�|�d�!}�xA�|�d�k�r\|�|�k�r\|�|�}�|�d�}�|��|�|�d�!}�qWy�|�|�|���}�Wn�t �k �r�|�d�|�}�n�X|�d�k�r�|�d�}�q�n �|�|�}�|�d�}�q��W|�S(���sf���Expand shell variables of the forms $var, ${var} and %var%. Unknown variables are left unchanged.t���$t���%i����Ns���_-c������������s���t��j�|��j������j������S(���N(���RK���RX���t���encodet���decode(���t���var(���t���encoding(����s���/usr/lib64/python2.7/ntpath.pyt���getenvQ��s����c���������S���s���t��j�|��S(���N(���RK���RX���(���Ra���(����(����s���/usr/lib64/python2.7/ntpath.pyRc���T��s����R/���i����s���'i���i���t���{t���}s���${(���t���stringt ���ascii_letterst���digitst ���isinstanceR���t���syst���getfilesystemencodingR8���R;���t ���ValueErrorRY���( ���R1���Rf���t���varcharsRc���t���resR;���t���pathlent���cRa���(����(���Rb���s���/usr/lib64/python2.7/ntpath.pyR���G��s����� c���������C���s���t��|��t���r�d�n�d �\�}�}�|��j�d���r4�|��S|��j�d�d���}��t�|����\�}�}��|�d�k�r��xV�|��d � d�k�r��|�|�}�|��d �}��qg�Wn+�|��j�d���r��|�|�}�|��j�d���}��n��|��j�d���}�d �}�x��|�t�|���k��r�|�|�d�k�r|�|�=q��|�|�d�k�r�|�d �k�rP|�|�d �d�k�rP|�|�d �|�d �5|�d �8}�q�|�d �k�ru|�j�d���ru|�|�=q�|�d �7}�q��|�d �7}�q��W|�r�|�r�|�j �|���n��|�|�j �|���S(���s0���Normalize path, eliminating double slashes, etc.u���\u���.s���\R&���s���\\.\s���\\?\R(���R/���i���i����s���..(���u���\u���.(���s���\R&���(���s���\\.\s���\\?\(���R&���R/���(���Ri���R���t ���startswithR,���R���t���lstripR���R8���t���endswitht���appendR���(���R1���t ���backslasht���dott���prefixt���compsR?���(����(����s���/usr/lib64/python2.7/ntpath.pyR������s8����! (���t���_getfullpathnamec���������C���sR���t��|����sH�t�|��t���r*�t�j����}�n�t�j����}�t�|�|����}��n��t�|����S(���s&���Return the absolute version of a path.(���R���Ri���R���RK���t���getcwdut���getcwdR���R���(���R1���t���cwd(����(����s���/usr/lib64/python2.7/ntpath.pyR������s����c���������C���sa���|��r-�y�t��|����}��WqW�t�k �r)�qW�Xn*�t�|��t���rK�t�j����}��n�t�j����}��t�|����S(���s&���Return the absolute version of a path.(���Ry���t���WindowsErrorRi���R���RK���Rz���R{���R���(���R1���(����(����s���/usr/lib64/python2.7/ntpath.pyR������s���� t���getwindowsversioni���i���c���������C���sz���t��t�|������}�t�|���\�}�}�t�|���}�|�sK�t�|���\�}�}�n��|�|�g��|�j�t���D]�}�|�ra�|�^�qa�f�S(���N(���R���R���R���t���boolR���R���R���(���R1���t���absRw���RG���t���is_unct���x(����(����s���/usr/lib64/python2.7/ntpath.pyt���_abspath_split���s����c���������C���s1��|��s�t��d�����n��t�|���\�}�}�}�t�|����\�}�}�}�|�|�Arb�t��d�|��|�f�����n��|�j����|�j����k�r��|�r��t��d�|�|�f�����q��t��d�|�|�f�����n��d�}�xC�t�|�|���D]2�\�} �} �| �j����| �j����k�r��Pn��|�d�7}�q��Wt�g�t�|���|�|�|�}�|�s't�St�|����S(���s#���Return a relative version of a paths���no path specifieds,���Cannot mix UNC and non-UNC paths (%s and %s)s,���path is on UNC root %s, start on UNC root %ss&���path is on drive %s, start on drive %si����i���(���Rl���R����R-���t���zipR���R8���R���R���(���R1���t���startt���start_is_unct���start_prefixt ���start_listt���path_is_unct���path_prefixt ���path_listR?���t���e1t���e2t���rel_list(����(����s���/usr/lib64/python2.7/ntpath.pyR%������s,���� (���t���_isdir(/���t���__doc__RK���Rj���t���statRC���RI���R���t���__all__R���R���R!���R���R���R ���R���t���builtin_module_namesR"���R���R���R���R���R���R���R���RD���R���R ���R���R���R���R���R���R���R���R���t���ntRy���t���ImportErrorR���R#���t���hasattrR~���R$���R����R%���R����R���(����(����(����s���/usr/lib64/python2.7/ntpath.pyt���<module>���sp��� ! * $ $ * X 5