<pre class="mermaid">
flowchart TD
    Restore --> pullFiles[pull the first git repository]
    pullFiles --> restoreManifest[restore the manifest file]
    restoreManifest --> restoreGitRepositories[Restore the rest of the git repositories]
    restoreGitRepositories --> checkManifestFiles[Check manifest for all files]
    checkManifestFiles --> copyToStaging[copy file segments to staging folder]
    copyToStaging --> reassembleFile[reassemble file from segments]
    reassembleFile --> copyToRestore[copy the restored file to restore location]
    copyToRestore --> deleteStaging[delete everything in staging]
    deleteStaging --> checkForMore{more files to restore?}
    checkForMore -->|yes| copyToStaging
    checkForMore -->|no| reportComplete[report completion]
</pre>
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true, theme: 'default' });

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.