Accessing the File Manager
Click the Files button in the Discord panel to open the file manager interface. The file manager displays:- Current directory path
- Navigation controls
- Dropdown menu with up to 25 items
- File/folder selection interface
The file manager is restricted to the McDis directory (where
md_config.yml is located). You cannot navigate outside this directory.Navigation Controls
The file manager interface includes several control buttons:⬅️ Back
Return to the previous directory level
🔄 Reload
Refresh the current view
📌 Go To Path
Jump to a specific directory path
Terminal
Open advanced file operations terminal
Using the Dropdown
The dropdown menu shows the first 25 items in the current directory:- Folders are listed first
- Files are listed after folders
- Select an item to navigate (folders) or view options (files)
File Operations
When you select a file (not a folder), additional buttons appear:
Request (Download)
Download files to your device: For files ≤ 5MB:- File is attached directly to Discord message
- Instant download
- Requires Flask server to be enabled
- Generates a download link
- Link can be single-use or multi-use
- Link can be temporary or persistent
- Download tracked in Console Flask thread
Edit (Rename)
Rename files and folders:- Click Edit button
- Enter new name in modal
- File/folder is renamed instantly
Renaming preserves file extensions automatically. Just enter the new base name.
Delete
Permanently delete files or folders:- Click Delete button
- Confirm deletion
- File/folder is removed immediately
Text File Editor
Text files get special treatment with a built-in editor:
Preview Mode
For all text files:- First 1024 characters are displayed in the embed
- Syntax highlighting via Markdown code blocks
- Full file available via Request button
Edit Mode
For files < 4000 characters:
- Click Edit button
- Discord modal opens with file contents
- Make changes in the text box
- Submit to save changes
The 4000 character limit is due to Discord modal text input constraints. For larger files, download, edit locally, and re-upload.
.txt,.log.yml,.yaml,.json,.toml.properties,.cfg,.conf.sh,.bat,.cmd.py,.js,.java,.kt.md,.html,.css- And more…
Predefined Commands System
Each process folder contains a.mdcommands subfolder for storing predefined command sequences:
Accessing Commands
Navigate to any process folder (e.g.,McDis/my_server/.mdcommands):
- 📦 Toggle View - Switch between commands view and files view
- Dropdown - Select existing command or create new one
Command Structure
Commands are stored as YAML files:Using Commands
When viewing a command:
- Execute - Run the selected action’s commands
- Edit - Open YAML file for editing
- Delete - Remove the command file
- Dropdown - Select which action to execute
Backup Management
Navigate toMcDis/.mdbackups/<process_name> to access backup tools:
Creating Backups
Backup Retention
Backups are automatically managed:- Existing backups are renamed (numbered)
- New backup becomes backup #1
- Backups exceeding the limit are automatically deleted
Restoring Backups
File Manager Terminal
For advanced operations, use the integrated terminal:
Click the Terminal button to access advanced file operations.
Available Terminal Commands
The terminal supports various file operations:- Navigation:
cd,ls,pwd - File operations:
cp,mv,rm,touch - Directory operations:
mkdir,rmdir - Viewing:
cat,head,tail - Compression:
zip,unzip,tar - Search:
find,grep - Permissions:
chmod(Linux only)
All terminal operations are restricted to the McDis directory. You cannot access files outside this location.
Terminal Best Practices
Use Absolute Paths
Prefix paths with
McDis/ to avoid confusionTest Before Deleting
Use
ls to verify paths before running rm commandsQuote Spaces
Use quotes for paths with spaces:
"McDis/My Server"Compress Large Transfers
ZIP folders before downloading to reduce size
File Upload System
Upload files to your server through the Discord panel:Enabling Uploader
Uploading Files
Once the uploader is active:- Drag and drop files into the panel channel
- Or use Discord’s file attachment button
- Files are automatically saved to the configured path
- Progress is shown in the channel
- Original message is deleted after upload
- Do Not Overwrite: Existing files are skipped with a warning
- Overwrite: Existing files are replaced without warning
Disabling Uploader
Click the Close button to deactivate upload mode.Flask Download Server
For files larger than 5MB, configure the Flask server:Configuration
Editmd_config.yml:
Flask Controls
Access Flask settings in Tools → Flask:
- Run/Close - Start or stop the Flask server
- Single Use/Multi-Use - Link usage policy
- Temporary/Persistent - Link expiration policy
Download Tracking
All Flask downloads are logged in theConsole Flask thread:
Directory Structure
McDis-RCON automatically creates several directories:Folders starting with
.md are McDis-RCON system folders and should not be manually modified unless you know what you’re doing.File Manager Permissions
Troubleshooting
File manager shows 'Permission denied'
File manager shows 'Permission denied'
Linux: Ensure McDis-RCON has read/write permissions on the directory.
Can't download files larger than 5MB
Can't download files larger than 5MB
You must enable the Flask server:
- Configure Flask in
md_config.yml - Open the required port in your firewall
- Restart McDis-RCON
- Enable Flask in Tools → Flask
Uploaded files not appearing
Uploaded files not appearing
- Verify uploader is enabled (green “Run” button)
- Check target path is correct
- Ensure you have write permissions
- Check Discord for error messages
Text editor won't open
Text editor won't open
- File may be binary (not text)
- File may exceed 4000 characters
- Use Request to download and edit locally
Backup creation fails
Backup creation fails
- Ensure process is stopped first
- Check disk space availability
- Verify write permissions on
.mdbackups/ - Look for errors in console thread
Best Practices
Regular Backups
Create backups before major changes or updates
Clean Up Old Files
Periodically delete old logs and unused files
Use Terminal for Bulk
Terminal is faster for operations on many files
Test Restores
Occasionally test backup restoration to ensure they work
Related Features
Backup System
Detailed backup management guide
Discord Panel
Master the panel interface
Configuration
Configure Flask and backup settings
Process Control
Manage server lifecycle
