Source
pub async fn create_directory( &self, directory_name: String, ) -> Result<CreateDirectoryResponse, KineticaError>
Create a directory in KiFS
Creates a new directory in KiFS. The new directory serves as a location in which the user can upload files using /upload/files.
directory_name- Name of the directory in KiFS to be created.
Source
pub async fn create_directory_with_opts( &self, directory_name: String, options: CreateDirectoryRequestOptions, ) -> Result<CreateDirectoryResponse, KineticaError>
Create a directory in KiFS
Creates a new directory in KiFS. The new directory serves as a location in which the user can upload files using /upload/files.
directory_name- Name of the directory in KiFS to be created.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn create_directory_raw( &self, request: &CreateDirectoryRequest, ) -> Result<CreateDirectoryResponse, KineticaError>
Sends a pre-built CreateDirectoryRequest to the /create/directory endpoint.
Source
pub async fn create_directory_from_url( &self, url: &str, request: &CreateDirectoryRequest, ) -> Result<CreateDirectoryResponse, KineticaError>
Sends a pre-built CreateDirectoryRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.