glitchySid
3aa82d3f90
feat: add custom path support with comprehensive optimizations
- Add optional path argument to organize any directory instead of configured download folder
- Implement path validation and normalization for security and consistency
- Remove unnecessary cloning operations for better performance
- Extract magic numbers to named constants for better maintainability
- Add comprehensive documentation and error handling
- Improve error messages with better context and formatting
Key improvements:
- Performance: Eliminates unnecessary PathBuf allocations
- Security: Path normalization prevents path traversal attacks
- Robustness: Early validation prevents silent failures
- Code Quality: Better documentation, consistent patterns, improved error handling
The implementation supports:
- Current directory: ./noentropy .
- Absolute paths: ./noentropy /path/to/folder
- Relative paths: ./noentropy ./subfolder
- Backward compatibility: ./noentropy (uses configured download folder)
All existing tests pass, no regressions introduced.
2026-01-07 22:18:57 +05:30
..
2026-01-07 22:18:57 +05:30
2025-12-30 19:43:19 +05:30
2025-12-31 13:01:15 +05:30
2025-12-30 02:10:00 +05:30
2025-12-31 21:22:46 +05:30
2025-12-30 02:10:00 +05:30
2025-12-30 02:10:00 +05:30
2025-12-31 21:22:46 +05:30