Custom File Organizer archived
A WordPress plugin with WP-CLI commands to organize files in the uploads directory to distribute files across more directories.
by Kyle Taylor · github.com/pantheon-se/custom-file-organizer · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/pantheon-se/custom-file-organizer/archive/refs/heads/main.zipReadme
Custom File Organizer
Custom File Organizer is a WordPress plugin that provides WP-CLI commands to organize files in the uploads directory. It also includes an admin interface for monitoring and managing file organization.
Features
- Organizes files in the
wp-content/uploadsdirectory based on the first character of the filename. - Provides an admin interface to monitor file movements and upload directory status.
- Supports WP-CLI commands for advanced file management.
Installation
- Clone or download the plugin from GitHub.
- Upload the
custom-file-organizerfolder to your/wp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
Usage
WP-CLI Commands
- Scan Command: Scans directories and lists those with more than 50,000 files.
wp file-organizer scan
- Organize Command: Organizes files in the upload directory. Includes a dry-run option.
wp file-organizer organize [--dry-run]
Admin Interface
Navigate to the 'File Organizer' page in the WordPress admin area to view the file organization status and recent activities.
Contributing
Contributions are welcome. Please create an issue or submit a pull request.
License
This plugin is licensed under the GPL-2.0-or-later license. See the LICENSE file for details.