(self, path: PATH_TYPES)
return False
Check whether the provided path is a symlink
Check whether the provided path is a symlink
Check whether the provided path is a symlink
def is_symlink(self, path: PATH_TYPES) -> bool:
        """Check whether the provided path is a symlink"""
        with self.connection() as conn:
            try:
                headers = conn.head_object(
                    self.default_container, str(path), query_string="symlink=get"
                )
            except swiftclient.exceptions.ClientException:
                return False
            if headers:
                return bool(headers.get("content-type", "") == "application/symlink")
        return False
def is_symlink ( self , path : PATH_TYPES ) -> bool : with self . connection ( ) as conn : try : headers = conn . head_object ( self . default_container , str ( path ) , query_string = "symlink=get" ) except swiftclient . exceptions . ClientException : return False if headers : return bool ( headers . get ( "content-type" , "" ) == "application/symlink" ) return False