ACIL FM
Dark
Refresh
Current DIR:
/opt/alt/python37/lib/python3.7/site-packages/filelock
/
opt
alt
python37
lib
python3.7
site-packages
filelock
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
__pycache__
-
chmod
Open
Rename
Delete
py.typed
0 B
chmod
View
DL
Edit
Rename
Delete
version.py
142 B
chmod
View
DL
Edit
Rename
Delete
_api.py
8.15 MB
chmod
View
DL
Edit
Rename
Delete
_error.py
399 B
chmod
View
DL
Edit
Rename
Delete
_soft.py
1.61 MB
chmod
View
DL
Edit
Rename
Delete
_unix.py
1.42 MB
chmod
View
DL
Edit
Rename
Delete
_util.py
594 B
chmod
View
DL
Edit
Rename
Delete
_windows.py
1.72 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
1.22 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/alt/python37/lib/python3.7/site-packages/filelock/_util.py
from __future__ import annotations import os import stat def raise_on_exist_ro_file(filename: str) -> None: try: file_stat = os.stat(filename) # use stat to do exists + can write to check without race condition except OSError: return None # swallow does not exist or other errors if file_stat.st_mtime != 0: # if os.stat returns but modification is zero that's an invalid os.stat - ignore it if not (file_stat.st_mode & stat.S_IWUSR): raise PermissionError(f"Permission denied: {filename!r}") __all__ = [ "raise_on_exist_ro_file", ]
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply