%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/utils/validate/ |
Current File : //lib/python2.7/site-packages/salt/utils/validate/path.pyo |
� ���^c @@ sP d Z d d l m Z m Z m Z d d l Z e d � Z d � Z d � Z d S( u� :codeauthor: Pedro Algarvio (pedro@algarvio.me) salt.utils.validate.path ~~~~~~~~~~~~~~~~~~~~~~~~ Several path related validators i ( t absolute_importt print_functiont unicode_literalsNc C@ s� t j | t j � r. t j | t j � r. t St j | t j � r] t j | t j � r] t S| t k rm t St j j | � } t j | t j � s� t St j | t j � 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 ( t ost accesst F_OKt W_OKt Truet Falset patht dirname( R t check_parentt parent_dir( ( s<