(self, container_id)
return 0
See if a container root dir is writable by this user
See if a container root dir is writable by this user
See if a container root dir is writable by this user
def iswriteable_container(self, container_id):
        """See if a container root dir is writable by this user"""
        container_root = self.cd_container(container_id) + "/ROOT"
        if not os.path.exists(container_root):
            return 2
        if not os.path.isdir(container_root):
            return 3
        if os.access(container_root, os.W_OK):
            return 1
        return 0
def iswriteable_container ( self , container_id ) : container_root = self . cd_container ( container_id ) + "/ROOT" if not os . path . exists ( container_root ) : return 2 if not os . path . isdir ( container_root ) : return 3 if os . access ( container_root , os . W_OK ) : return 1 return 0