4.4 DEFINE VOLUME Command

Return to DidoDLL

Purpose

Return to Top

The purpose of the DEFINE VOLUME command is to define a localized name mapping an actual path to a directory to a symbolic name. The symbolic name provides a logical name for use throughout the DIDO CLI. This helps with maintenance because the actual path is maintained in a single location.

Syntax

Return to Top

DEFINE VOLUME <VolumeName> AS
PATH = <DirectoryPath>
MODE = <DirectoryPermissions>;

Where

Return to Top

VolumeName ::= The symbolic name used to reference the volume throughout the DIDO CLI.DirectoryPath ::= The path to the directory associated with the volume.DirectoryPermissions ::= The mode (i.e., permissions) associated with the volume (i.e., R, W, X). The default is RW.

Examples

Return to Top

DEFINE VOLUME config AS path = "/etc/myDidoRoot/" mode = "RX"; DEFINE VOLUME DATA AS path = "/etc/myDidoRoot/" mode = "RW"; DEFINE VOLUME wallet AS path = "~/myWallet/"; DEFINE VOLUME wallet AS path = "~/universityWallet/";