Description
Expands command-line paths so directories can become the files they contain before a tool processes them. It is useful for linters, test runners, and code tools that accept mixed file and directory arguments.
Path expansion can touch more files than expected. Respect ignore rules, avoid following unsafe symlinks blindly, and keep destructive operations separate from expansion.