Check that a regular file does not already exist.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_validate_file_not_exists

Purpose

Check that a regular file does not already exist.

Arguments

  • $1 — Path to test.

Returns

  • 0 when the path is not an existing regular file; 1 otherwise.

Usage

  sgnd_validate_file_not_exists "/tmp/sgnd-new-file"