there is a bug:
total = Dir.Create(path);
if path is not exist , it will return 1. may be you can change it to -1.
change Dir.Create function:
int Create(string path, string filter = "\\*") { ... if(hndl == 0) return (-1); ... } // change it to: int Create(string path, string filter = "\\*") { ... if(hndl == 0 || hndl == ULONG_MAX) return (-1); ... }
everything is OK.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
CDir (MT5) - a class for getting directory contents:
Author: Mikhail Dovbakh