Test whether a path is an existing directory.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_validate_dir_exists

Purpose

Test whether a path is an existing directory.

Arguments

  • $1 — Directory to test.

Returns

  • 0 when -d matches; 1 otherwise.

Usage

  sgnd_validate_dir_exists "/tmp"