files module returns an entry object for a path in the sandbox, whether the path is a file or a directory. The object lists the filename, type and path, along with the size, permissions and owner recorded by the filesystem.
Install the SDK, or the CLI for
ppio commands, and set the PPIO_API_KEY and PPIO_DOMAIN environment variables before running these examples. See Quickstart and Install and authenticate.Get metadata about a file
Create a file, then pass its path toget_info() or getInfo().
Get metadata about a directory
The same call returns metadata for a directory, withtype set to dir.
Metadata fields
The entry object has the following fields.- Python
- Node.js