%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/usr/lib/python2.7/site-packages/salt/utils/validate/
Upload File :
Create Path :
Current File : //proc/self/root/usr/lib/python2.7/site-packages/salt/utils/validate/path.pyo

�
���^c@@sPdZddlmZmZmZddlZed�Zd�Zd�Z	dS(u�
    :codeauthor: Pedro Algarvio (pedro@algarvio.me)


    salt.utils.validate.path
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Several path related validators
i(tabsolute_importtprint_functiontunicode_literalsNcC@s�tj|tj�r.tj|tj�r.tStj|tj�r]tj|tj�r]tS|tkrmtStjj|�}tj|tj�s�tStj|tj�S(u	
    Check if a given path is writeable by the current user.

    :param path: The path to check
    :param check_parent: If the path to check does not exist, check for the
           ability to write to the parent directory instead
    :returns: True or False
    (tostaccesstF_OKtW_OKtTruetFalsetpathtdirname(R	tcheck_parentt
parent_dir((s</usr/lib/python2.7/site-packages/salt/utils/validate/path.pytis_writeables
*+cC@s2tj|tj�r.tj|tj�r.tStS(u�
    Check if a given path is readable by the current user.

    :param path: The path to check
    :returns: True or False
    (RRRtR_OKRR(R	((s</usr/lib/python2.7/site-packages/salt/utils/validate/path.pytis_readable5s*cC@stj|tj�S(u�
    Check if a given path is executable by the current user.

    :param path: The path to check
    :returns: True or False
    (RRtX_OK(R	((s</usr/lib/python2.7/site-packages/salt/utils/validate/path.pyt
is_executableEs(
t__doc__t
__future__RRRRRR
RR(((s</usr/lib/python2.7/site-packages/salt/utils/validate/path.pyt<module>
s
$	

Zerion Mini Shell 1.0