xrf_explorer.server.file_system package

Subpackages

Submodules

xrf_explorer.server.file_system.helper module

data_source_name_from_cube_path(path_to_cube: str) str[source]

Gets the name of the data source from the path to the cube.

Parameters:

path_to_cube – The path to the cube

Returns:

The name of the data source where the cube is located

get_config() dict | None[source]

Gets the set configuration for the backend. :return: A dictionary containing the configuration for the backend.

get_path_to_generated_folder(data_source: str) str[source]

Gets the path to the generated folder for a given data source. If it does not exist, it will be created.

Parameters:

data_source – The data source for which the path is requested.

Returns:

The path to the generated folder for the given data source. Empty string is returned in case of error.

set_config(path: str) bool[source]

Sets the global configuration for the backend. :param path: The path to the configuration file. :return: True if the configuration file was successfully loaded.

Module contents

This module handles everything related to routing, storing, or extracting files in the backend of the application.