File manager
Module for abstract representation of a file manager system.
FileManager
¶
Bases: ABC
Macro Rendering Error¶
File: reference/packages/core/file_manager.md
ModuleNotFoundError: No module named 'pyspark'
Traceback (most recent call last):
File "/app/tmp_os/lakehouse-engine/.venv/lib/python3.12/site-packages/mkdocs_macros/plugin.py", line 703, in render
return md_template.render(**page_variables)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/tmp_os/lakehouse-engine/.venv/lib/python3.12/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
File "/app/tmp_os/lakehouse-engine/.venv/lib/python3.12/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 3, in top-level template code
File "/app/tmp_os/lakehouse-engine/cicd/code_doc/mkdocs_macros.py", line 194, in get_file_manager_operations
from lakehouse_engine.core.definitions import FILE_MANAGER_OPERATIONS
File "/app/tmp_os/lakehouse-engine/lakehouse_engine/core/definitions.py", line 10, in <module>
from pyspark.sql import DataFrame
ModuleNotFoundError: No module named 'pyspark'
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.
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.
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.