(self, container_id)
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 get_size(self, container_id):
        """See if a container root dir is writable by this user"""
        container_root = self.cd_container(container_id) + "/ROOT"
        try:
            size, dummy = Uprocess().get_output(["du", "-s", "-m", "-x",
                                                 container_root]).split()
            return int(size)
        except (ValueError, NameError, AttributeError):
            return -1
def get_size ( self , container_id ) : container_root = self . cd_container ( container_id ) + "/ROOT" try : size , dummy = Uprocess ( ) . get_output ( [ "du" , "-s" , "-m" , "-x" , container_root ] ) . split ( ) return int ( size ) except ( ValueError , NameError , AttributeError ) : return - 1