Check a conservative single filesystem component.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_validate_fs_name

Purpose

Check a conservative single filesystem component.

Description

This checks allowed characters only, not special names or path traversal safety.

Arguments

  • $1 — Candidate name.

Returns

  • 0 for one or more ASCII letters, digits, periods, underscores or hyphens; 1 otherwise.

Usage

  sgnd_validate_fs_name Framework_2.2