snowflake.snowpark.DataFrameReader.directory¶
- DataFrameReader.directory(stage_name: str) DataFrame[source]¶
Returns a DataFrame representing the results of a directory table query on the specified stage.
This method is an alias of
directory().- Parameters:
stage_name – The name of the stage to query. The stage name should not include the ‘@’ prefix as it will be added automatically.
- Returns:
RELATIVE_PATH: Path to the files to access using the file URLSIZE: Size of the file in bytesLAST_MODIFIED: Timestamp when the file was last updated in the stageMD5: MD5 checksum for the fileETAG: ETag header for the fileFILE_URL: Snowflake file URL to access the file
- Return type:
A DataFrame containing metadata about files in the stage with the following columns