dlt.common.storages.file_storage
FileStorage Objects
class FileStorage()
list_folder_files
def list_folder_files(relative_path: str, to_root: bool = True) -> List[str]
List all files in relative_path
folder
Arguments:
relative_path
str - A path to folder, relative to storage rootto_root
bool, optional - If True returns paths to files in relation to root, if False, returns just file names. Defaults to True.
Returns:
List[str]
- A list of file names with optional path as perto_root
parameter
link_hard_with_fallback
@staticmethod
def link_hard_with_fallback(external_file_path: str,
to_file_path: str) -> None
Try to create a hardlink and fallback to copying when filesystem doesn't support links