ls

List Files and Folders

List files and folders in your connected storage, similar to the 'ls' command in Unix-like systems. Supports flexible formatting, sorting, and filtering. Also includes an interactive explorer mode.

Interactive Mode Enhanced Details NEW

Interactive Explorer Mode

Run filefortress ls to launch a terminal-based file explorer. Navigate remotes, preview details, and change views on the fly.

Enhanced File Details NEW

In interactive mode, selecting a file shows rich, categorized metadata including identity hashes, storage details, media info, and more.

Syntax

filefortress ls [path] [options]

path: Optional. Can be a local-style path or remote-name:/path/to/folder. If omitted, lists root of all remotes.

Display & Sorting

--long, -l

Columnar output for non-interactive mode

--one, -1

Names-only output (one per line) for piping

--sort, -S

Sort by: name, size, time, ext, remote

--reverse

Reverse the sort order

--details NEW

Metadata detail level: minimal, standard, full, raw

Filtering & Traversal

Option Description Example
-R, --recursive List subdirectories recursively --recursive
--max-depth Maximum directory depth --max-depth 2
--files-only Show only files --files-only
--folders-only Show only folders --folders-only
--remote, -r Filter by specific remote --remote "Google Drive"
--extensions, -e Filter by file extensions --extensions pdf,docx
--media-type, -t Filter by media type --media-type image
--modified-after, -m Files modified after date --modified-after "7 days"

File Details View NEW

When you select a file in interactive mode, FileFortress displays rich, categorized metadata.

Core

Name, path, size, MIME type

All levels

Identity

ETag, MD5/SHA256 hashes

Standard+

Storage

Storage class, encryption

Standard+

Media

Duration, dimensions, GPS

Standard+

Links

Web URLs, sharing links

Full

AI

Descriptions, tags, OCR

Full

Populating Metadata: Run filefortress remotes enrich to populate structured metadata for your files.

Examples

Launch interactive file explorer:

filefortress ls

List contents of a specific remote and path:

filefortress ls "My GDrive:/Documents/Reports"

List only PDF files, sorted by size:

filefortress ls --files-only --extensions pdf --sort size --reverse

Save recent images to JSON:

filefortress ls --media-type image --modified-after "7 days" --view json --save-to-file images.json

Script-friendly listing (names only):

filefortress ls --non-interactive --one

Easy to pipe into other tools.

Related Commands