storage_manage_directories

SolidGroundUX DocumentationSolidGroundUX
NL

fn: storage_manage_directories

Purpose

Manage simple first-level filesystem directories below one SolidGroundUX storage root.

Behavior

  • Selects one configured storage root and requires it to be mounted before changes are allowed.
  • Lists only direct child directories; files are not included.
  • Creates new directories as root:root mode 0755.
  • Renames one direct child directory without crossing the selected storage-root boundary.
  • Removes directories only when they are empty; recursive deletion is intentionally unsupported.
  • Does not manage Samba shares, ACLs, AD identities, or standalone Samba identities.
  • Owns its interactive submenu and returns directly to the Storage menu when the user backs out.
  • Honors console dry-run mode for create, rename, and remove operations.

Inputs

(globals): FLAG_DRYRUN

Returns

  • 0 when the directory manager is exited normally; non-zero on an operation failure.

Usage

  storage_manage_directories