Skip to main content

LIST FILE

Applies to: check marked yes Databricks Runtime

Lists the resources added by ADD FILE.

Syntax

LIST [ FILE | FILES ] [ resource_name [...]]

Parameters

  • resource_name

    Optional a name of a file or directory to list.

Examples

SQL
> ADD FILE /tmp/test /tmp/test_2;

> LIST FILE;
file:/private/tmp/test
file:/private/tmp/test_2

> LIST FILE /tmp/test /some/random/file /another/random/file
file:/private/tmp/test