| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .. | ||
| FolderOps | ||
| File.mqh | ||
| Path.mqh | ||
| README.md | ||
Utils/File
File and path handling utilities: extensions, directory parsing, and folder creation relative to the MQL5\Files sandbox.
Main features
- Extract/validate file extensions and pure file names (
FileGetExtension,FileHasExtension,GetPureFileName,FileRemoveExtension, inFile.mqh). - Get the directory portion of a path (
PathGetDirectory). - Create a folder relative to the terminal's data or common
MQL5\Filespath (CreateFolderinPath.mqh). - Folder-level operations — cleaning and encrypting a folder's contents (
CFolderOpsClean,CFolderOpsEncrypt, built onCFolderOpsBaseinFolderOps/).
Basic usage
string ext = FileGetExtension("report_final.csv"); // "csv"
string name = GetPureFileName("C:\\path\\report_final.csv"); // "report_final.csv"
CreateFolder("MyBotLogs", false); // creates MQL5\Files\MyBotLogs
Only the most representative functions are shown here.