Skip to main content
create_directory(directory_name=None, options=)[source]

Creates a new directory in KiFS. The new directory serves as a location in which the user can upload files using GPUdb.upload_files().

Parameters

directory_name (str) –

Name of the directory in KiFS to be created.

options (dict of str to str) –

Optional parameters. Allowed keys are:

  • create_home_directory – When set, a home directory is created for the user name provided in the value. The input parameter directory_name 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. Allowed values are:

    • true

    • false

    The default value is ‘false’.

The default value is an empty dict ( ).

Returns

A dict with the following entries–

directory_name (str) –

Value of input parameter directory_name.

info (dict of str to str) –

Additional information.