Skip to main content

List files

GET 

/metalakes/:metalake/catalogs/:catalog/schemas/:schema/filesets/:fileset/files

Returns the files and directories directly under a path in a fileset, with the name, size, modification time and directory flag of each. Fails when the catalog sets disable-filesystem-ops to true.

Sign in with a bearer token or a local user's password; see Authentication.

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

    catalog stringrequired

    The name of the catalog

    schema stringrequired

    The name of the schema

    fileset stringrequired

    The name of the fileset

Query Parameters

    sub_path string

    Default value: /

    The path to list, relative to the fileset's storage location

    location_name string

    The name of the storage location to list. Defaults to the fileset's only location, or to the location named by its default-location-name property when it has several.

Responses​

The files and directories directly under the path, each with its name, directory flag, size, modification time and virtual file path.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    files

    object[]

  • Array [

  • name stringrequired

    The name of the file/directory

    isDir booleanrequired

    Whether this is a directory

    size int64required

    The file size in bytes (0 if directory)

    lastModified int64required

    The last modification time of the file/directory

    path stringrequired

    The gvfs path of the file/directory

  • ]

Loading...