§
{<ˆj¬ ã ó^ — d dl mZ d dlZd dlZd dlZd dlmZmZ d dlm Z dd „Z
dd„Zdd
gZdS )é )ÚannotationsN)ÚEACCESÚEISDIR)ÚPathÚfilenameÚstrÚreturnÚNonec ól — t j | ¦ « }n# t $ r Y dS w xY w|j dk r|j t j z st
t d| ¦ « ‚t j |j ¦ « r>t j
dk rt
t d| ¦ « ‚t t d| ¦ « ‚dS dS )a/
Raise an exception if attempting to open the file for writing would fail.
This is done so files that will never be writable can be separated from
files that are writable but currently locked
:param filename: file to check
:raises OSError: as if the file was opened for writing.
Nr zPermission deniedÚwin32zIs a directory)
ÚosÚstatÚOSErrorÚst_mtimeÚst_modeÚS_IWUSRÚPermissionErrorr ÚS_ISDIRÚsysÚplatformÚIsADirectoryErrorr )r Ú file_stats ú`/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/filelock/_util.pyÚraise_on_not_writable_filer
sÏ € ðÝ”G˜HÑ%Ô%ˆ ˆ øÝð ð ð Øˆˆðøøøð Ô˜QÒÐØÔ!¥D¤LÑ0ð IÝ!¥&Ð*=¸xÑHÔHÐHåŒ<˜ Ô)Ñ*Ô*ð LÝŒ|˜wÒ&Ð&å%¥fÐ.AÀ8ÑLÔLÐLõ (Ð0@À(ÑKÔKÐKð Ðð Lð Ls ‚ —
%¤%ú
Path | strc óX — t | ¦ « j dd¬¦ « dS )zm
Ensure the directory containing the file exists (create it if necessary)
:param filename: file.
T)ÚparentsÚexist_okN)r ÚparentÚmkdir)r s r Úensure_directory_existsr! $ s, € õ
ˆ�N„NÔ×Ò¨°tÐÑ<Ô<Ð<Ð<Ð<ó r r! )r r r r
)r r r r
)
Ú
__future__r r
r r Úerrnor r Úpathlibr r r! Ú__all__© r" r ú