Get the file information of a file or directory.
Arguments
- path
The path of the new file. The path should be the absolute DBFS path (for example
/mnt/my-file.txt
).- host
Databricks workspace URL, defaults to calling
db_host()
.- token
Databricks workspace token, defaults to calling
db_token()
.- perform_request
If
TRUE
(default) the request is performed, ifFALSE
the httr2 request is returned without being performed.
Details
If the file or directory does not exist, this call throws an exception with
RESOURCE_DOES_NOT_EXIST.
See also
Other DBFS API:
db_dbfs_add_block()
,
db_dbfs_close()
,
db_dbfs_create()
,
db_dbfs_delete()
,
db_dbfs_list()
,
db_dbfs_mkdirs()
,
db_dbfs_move()
,
db_dbfs_put()
,
db_dbfs_read()