Skip to main content

Module sort

Module sort 

Source
Expand description

smugmug-cli sort: how folders list their contents and how albums list their photos, for one folder or album or, with --recursive, everything under it.

These are different settings with different values, so they’re given separately (--folders-by, --albums-by) and a run only touches the kind you named: --recursive --folders-by name never changes an album. A node that already has the setting is left alone, so a run can be repeated (SmugMug’s default for a new folder is by date modified, newest first, so folders made by older versions of this tool need fixing; later runs only find the ones made since).

Structs§

SortOptions
SortSummary
What a run did (or, on a dry run, would do).

Enums§

AlbumSort
How an album lists its photos.
Direction
FolderSort
How a folder lists its contents.

Traits§

SortBackend
The SmugMug calls sorting needs.

Functions§

print_summary
Tell the user what a run did, or would do.
run
Set the sort order of options.path (and, if recursive, everything under it). Failures on single items are collected in the summary and don’t stop the rest.