--- source_files: - DataPRO/Modules/DatabaseImporter/DatabaseImport/Utilities/DiskUtility.cs generated_at: "2026-04-17T16:29:45.030001+00:00" model: "zai-org/GLM-5-FP8" schema_version: 1 sha256: "0f336a841c73386c" --- # Utilities ### Purpose This module provides disk and file system utility functions for the DatabaseImporter subsystem. It centralizes validation logic for file and path naming to ensure compatibility with operating system constraints. ### Public Interface **`DiskUtility`** - `public static bool ValidateFileAndPathNameChars(string nameToValidate)` — Validates that the input string contains no illegal characters for file or path names. Returns `true` if valid, `false` otherwise. Checks against `Path.GetInvalidFileNameChars()`, `Path.GetInvalidPathChars()`, and additionally rejects strings containing periods (`.`) or strings that are empty/whitespace-only after trimming. ### Invariants - Input string must not be