Skip to main content

files

Creates, updates, deletes, gets or lists a files resource.

Overview

Namefiles
TypeResource
Idsnowflake.stage.files

Fields

NameDatatypeDescription
namestringName of the file.
last_modifiedstringDate and time when the file was last modified.
md5stringmd5 hash of the file.
sizestringSize of the file.

Methods

NameAccessible byRequired ParamsDescription
list_filesSELECTdatabase_name, name, schema_name, endpointList files in the stage -- this is equivalent to LIST @stage.

SELECT examples

List files in the stage -- this is equivalent to LIST @stage.

SELECT
name,
last_modified,
md5,
size
FROM snowflake.stage.files
WHERE database_name = '{{ database_name }}'
AND name = '{{ name }}'
AND schema_name = '{{ schema_name }}'
AND endpoint = '{{ endpoint }}';