Banish (bn)
Overview
The Banish spell exiles files or directories to a temporary location (/tmp/.exile or C:\temp.exile), removing them from the current workspace without permanent deletion.
Features
- Temporary file removal
- Cross-platform support
- Directory support
- Location management
- Path preservation
Requirements
Installation
Built into Magi.CLI core spells.
Usage
cast bn <file_or_directory>
or
cast banish <file_or_directory>
Storage Location
- Unix:
/tmp/.exile/
- Windows:
C:\temp\.exile\
Examples
Banish a File
cast bn temporary_file.txt
Banish a Directory
System Integration
- Creates exile directory if needed
- Moves target to exile location
- Preserves file/directory name
- Maintains file structure
- Cross-platform compatibility
Common Use Cases
- Temporary file removal
- Workspace cleanup
- Test file management
- Quick organization
- Temporary archiving
Best Practices
- Verify target path
- Check exile directory location
- Remember exiled file names
- Monitor exile directory size
- Clean exile directory periodically
Notes
- Location varies by platform
- Directory created automatically
- Files remain until system cleanup
- No automatic recovery spell
- Useful for temporary removal