ls

List objects and prefixes or all buckets

Usage

./uplink.exe ls [sj://BUCKET[/PREFIX]] [flags]
./uplink.exe ls [sj://BUCKET[/PREFIX]] [flags]

Flags

FlagDescription
--access stringthe serialized access, or name of the access to use
--encryptedif true, show paths as base64-encoded encrypted paths
--expanded, -xUse expanded output, showing object expiration times and whether there is custom metadata attached
--help, -hhelp for ls
--pendingif true, list incomplete objects instead
--recursive, -rif true, list recursively

Examples

We consider the following object hierarchy throughout these examples:

We assume the object has been uploaded using a different encryption key than the other objects in the project.

List buckets

./uplink.exe ls
./uplink.exe ls

List objects in a bucket

./uplink.exe ls sj://images
./uplink.exe ls sj://images

List by prefix

./uplink.exe ls sj://images/cakes
./uplink.exe ls sj://images/cakes

List recursively

./uplink.exe ls --recursive
./uplink.exe ls --recursive

List encrypted paths of all objects in a bucket

./uplink.exe ls sj://recipes --encrypted --recursive
./uplink.exe ls sj://recipes --encrypted --recursive

Notice that since sj://recipes/cakes/very-secret-recipe.txt was encrypted with a different key, we cannot view it using regular ls and the default access, but with --encrypted we can see that it is indeed stored in sj://recipes

Previous
import
Next
mb