Skip to main content
  • createDirectory

    public CreateDirectoryResponse createDirectory(CreateDirectoryRequest request) throws GPUdbException
    Creates a new directory in KiFS. The new directory serves as a location in which the user can upload files using uploadFiles.
    Parameters:
    request - Request object containing the parameters for the operation.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.
  • createDirectory

    public CreateDirectoryResponse createDirectory(String directoryName, Map<String,String> options) throws GPUdbException
    Creates a new directory in KiFS. The new directory serves as a location in which the user can upload files using uploadFiles.
    Parameters:
    directoryName - Name of the directory in KiFS to be created.
    options - Optional parameters.
    • CREATE_HOME_DIRECTORY: When set, a home directory is created for the user name provided in the value. The directoryName must be an empty string in this case. The user must exist.
    • DATA_LIMIT: The maximum capacity, in bytes, to apply to the created directory. Set to -1 to indicate no upper limit. If empty, the system default limit is applied.
    • NO_ERROR_IF_EXISTS: If TRUE, does not return an error if the directory already exists. Supported values:The default value is FALSE.
    The default value is an empty Map.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.