📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
platformdirs
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/platformdirs/__pycache__
💾
Free:
45.4 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: unix.cpython-39.opt-1.pyc
a y��d� � @ s� d dl mZ d dlZd dlZd dlmZ d dlmZ ddlm Z ej �d�rZd dlmZ nd d �dd�ZG d d� de �Z ddd�dd�ZdgZdS )� )�annotationsN)�ConfigParser)�Path� )�PlatformDirsABCZlinux)�getuid�int��returnc C s t d��d S )Nzshould only be used on Linux)�RuntimeError� r r �5/usr/lib/python3.9/site-packages/platformdirs/unix.pyr s r c @ s� e Zd ZdZedd�dd��Zedd�dd��Zddd�d d �Zedd�dd��Zedd�d d��Z edd�dd��Z edd�dd��Zedd�dd��Zedd�dd��Z edd�dd��Zedd�dd��Zedd�dd��Zddd�dd �Zd!S )"�UnixaD On Unix/Linux, we follow the `XDG Basedir Spec <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_. The spec allows overriding directories with environment variables. The examples show are the default values, alongside the name of the environment variable that overrides them. Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`, `version <platformdirs.api.PlatformDirsABC.version>`, `multipath <platformdirs.api.PlatformDirsABC.multipath>`, `opinion <platformdirs.api.PlatformDirsABC.opinion>`. �strr c C s, t j�dd�}|�� s"t j�d�}| �|�S )z� :return: data directory tied to the user, e.g. ``~/.local/share/$appname/$version`` or ``$XDG_DATA_HOME/$appname/$version`` Z XDG_DATA_HOME� z~/.local/share��os�environ�get�strip�path� expanduser�_append_app_name_and_version��selfr r r r � user_data_dir s zUnix.user_data_dirc C s. t j�dd�}|�� s$dt j� d�}| �|�S )aY :return: data directories shared by users (if `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled and ``XDG_DATA_DIR`` is set and a multi path the response is also a multi path separated by the OS path separator), e.g. ``/usr/local/share/$appname/$version`` or ``/usr/share/$appname/$version`` Z XDG_DATA_DIRSr z/usr/local/sharez /usr/share)r r r r �pathsep�_with_multi_pathr r r r � site_data_dir) s zUnix.site_data_dir)r r c s<