Trevixal API
    Preparing search index...

    What the command needs of the machine: kept apart, so it can be tested without one.

    interface CreateIO {
        error: (line: string) => void;
        isFree: (directory: string) => Promise<boolean>;
        log: (line: string) => void;
        write: (path: string, text: string) => Promise<void>;
    }
    Index
    error: (line: string) => void
    isFree: (directory: string) => Promise<boolean>

    Whether a directory is missing or empty, so writing into it overwrites nothing.

    log: (line: string) => void
    write: (path: string, text: string) => Promise<void>

    Write a file, making its directories.