Skip to main content

Module paths

Module paths 

Source
Expand description

Path utilities for backup-mirroring, timestamp suffixing, and cross-platform tilde expansion.

Functions§

append_timestamp
Append a timestamp before the extension.
expand_tilde
Expand a leading ~ or ~/... to the user’s home directory.
expand_tilde_with
Same as expand_tilde but with an explicit home path — used in tests to avoid touching the process-wide HOME env var.
home_dir
$HOME (Unix) or $USERPROFILE (Windows), or None if neither is set.
is_ignored
Test a path against the loaded .yuiignore matcher.
load_yuiignore
Load $source/.yuiignore as a gitignore-style matcher.
mirror_into_backup
Mirror an absolute target path into a backup directory, dropping the drive colon on Windows so the path is filesystem-safe.
source_walker
Build a source-tree walker that skips yui’s internal .yui/ directory.