Skip to content

daft.functions.file_path#

file_path #

file_path(file: Expression) -> Expression

Returns the path (URL) of the file as a string.

Parameters:

Name Type Description Default
file File Expression

expression to evaluate.

required

Returns:

Name Type Description
Expression String Expression

expression containing the file path

Source code in daft/functions/file_.py
80
81
82
83
84
85
86
87
88
89
def file_path(file: Expression) -> Expression:
    """Returns the path (URL) of the file as a string.

    Args:
        file (File Expression): expression to evaluate.

    Returns:
        Expression (String Expression): expression containing the file path
    """
    return file._eval_expressions("file_path")