Test whether a filesystem path exists.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_validate_path_exists

Purpose

Test whether a filesystem path exists.

Arguments

  • $1 — Path to test.

Returns

  • 0 when -e matches; 1 otherwise.

Usage

  sgnd_validate_path_exists "/tmp"