File manager
Module for abstract representation of a file manager system.
FileManager
¶
Bases: ABC
Abstract file manager class.
Source code in mkdocs/lakehouse_engine/packages/core/file_manager.py
__init__(configs)
¶
Construct FileManager algorithm instances.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
configs |
dict
|
configurations for the FileManager algorithm. |
required |
Source code in mkdocs/lakehouse_engine/packages/core/file_manager.py
copy_objects()
abstractmethod
¶
Copies objects and 'directories'.
If dry_run is set to True the function will print a dict with all the paths that would be copied based on the given keys.
Source code in mkdocs/lakehouse_engine/packages/core/file_manager.py
delete_objects()
abstractmethod
¶
Delete objects and 'directories'.
If dry_run is set to True the function will print a dict with all the paths that would be deleted based on the given keys.
Source code in mkdocs/lakehouse_engine/packages/core/file_manager.py
move_objects()
abstractmethod
¶
Moves objects and 'directories'.
If dry_run is set to True the function will print a dict with all the paths that would be moved based on the given keys.
Source code in mkdocs/lakehouse_engine/packages/core/file_manager.py
FileManagerFactory
¶
Bases: ABC
Class for file manager factory.
Source code in mkdocs/lakehouse_engine/packages/core/file_manager.py
execute_function(configs)
staticmethod
¶
Get a specific File Manager and function to execute.