C + + non recursive way to traverse the directory (Windows / Linux)
no vote
Many implementations traverse the directory recursively, so if the directory level is too deep and the file operation function is complex, it is easy to overflow the stack. Some implementations change the current directory, but this class does not. This class traverses the directory in a non recursive way, and is currently suitable for windows and Linux platforms. There is no unified interface between windows and Linux, but the difference between TCHAR and char is due to the high efficiency of Windows API Unicode version, the convenience of windows program use and the avoidance of string conversion.