관리-도구
편집 파일: mkdirlockfile.cpython-311.pyc
� N�Dg � �r � d dl mZmZ d dlZd dlZd dlZd dlZddlmZm Z m Z mZmZm Z G d� de� � ZdS )� )�absolute_import�divisionN� )�LockBase� LockFailed� NotLocked� NotMyLock�LockTimeout� AlreadyLockedc �: � e Zd ZdZd d�Zdd�Zd� Zd� Zd� Zd � Z dS )� MkdirLockFilez"Lock file by creating a directory.TNc � � t j | |||� � t j � | j | j �d| j �| j ��� � | _ dS )zs >>> lock = MkdirLockFile('somefile') >>> lock = MkdirLockFile('somefile', threaded=False) �.N) r �__init__�os�path�join� lock_file�hostname�tname�pid�unique_name)�selfr �threaded�timeouts �v/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/lockfile/mkdirlockfile.pyr zMkdirLockFile.__init__ s] � � ��$��h��8�8�8� �7�<�<���59�]�]�]�59�Z�Z�59�X�X�)?�@� @����� c �� � |�|n| j }t j � � }|�|dk r||z }|�d}nt d|dz � � } t j | j � � t | j d� � � � � d S # t $ r� t j � � d }|j t j k r�t j � | j � � rY d S |�Kt j � � |k r4|dk rt! d| j z � � �t# d| j z � � �t j |� � nt'