factory
            FileRetrievalFactory
¶
    Factory for creating file retrieval strategies based on location type.
This factory class is responsible for returning the appropriate strategy implementation for retrieving files based on the specified location type.
Source code in src/cloe_nessy/file_utilities/factory.py
                
            get_strategy(location_type)
  
      staticmethod
  
¶
    Returns the appropriate file retrieval strategy for the given location type.
Depending on the provided location type, this method returns an instance
of either LocalDirectoryStrategy or UtilsStrategy. If the
location type is not recognized, a ValueError is raised.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| location_type | LocationType | The location type for which to get the retrieval strategy. | required | 
Returns:
| Name | Type | Description | 
|---|---|---|
| FileRetrievalStrategy | LocalDirectoryStrategy | OneLakeStrategy | UtilsStrategy | An instance of the appropriate file retrieval strategy. | 
Raises:
| Type | Description | 
|---|---|
| ValueError | If the provided location type is unknown or unsupported. |