Zip List Entries

List the contents of a ZIP file

Endpoint

GET/file_actions/zip_list/{path}

Return Object

ZipListEntry

Authorization Requirement

Available to all authenticated keys or sessions.

Request Parameters

ParameterDescription
path
string
Required
Path to operate on.

Example Request

curl https://app.files.com/api/rest/v1/file_actions/zip_list/{path} \
  -H 'X-FilesAPI-Key: YOUR_API_KEY'

Example Response

[
  {
    "path": "example",
    "size": 1
  }
]

The ZipListEntry Object

Some of the endpoints above return a ZipListEntry object. The attributes of this object are listed below.

AttributeDescription
path
string
Entry path inside the ZIP. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
size
int64
Uncompressed size in bytes.

Example ZipListEntry Object

{
  "path": "example",
  "size": 1
}