Order#

class barecat.cli.main.Order[source]#

Bases: enum.Flag

Ordering specification for file and directory listings.

The ordering can be by address (shard and offset), path, or random. The order can be ascending or descending. The default order is ANY, which is the order in which SQLite yields rows.

Attributes#

ANY

Default order, as returned by SQLite

RANDOM

Randomized order

ADDRESS

Order by shard and offset position

PATH

Alphabetical order by path

DESC

Descending order

Instance Methods#

as_query_text()

Returns the SQL ORDER BY clause corresponding to the ordering specification.