MediaDirectory.h header

#include <ew/app/MediaDirectory.h>

Namespace ew::app

Functions

QString ew::app::library::mediaDirectory(const ew::app::workspace::Workspace &workspace, ew::core::foundation::ContentId media)

The on-disk directory media's assetPath resolves against, given workspace.

The project's own directory for media the project holds, and the directory a mounted library was LOADED FROM for media that came in with it.

Loaded-from, not re-derived. Re-deriving a library's directory by joining its mount path onto the project directory points a relative mount into the working copy for a single-file project, and every image in that library then resolves to a path with nothing at it (F-0092).

Shared rather than repeated per panel: the rule is subtle, it has been got wrong once already, and a second copy is a second chance to get it wrong somewhere the first fix never reaches.