DGLE-HQ / DGLE

Powerful independent cross-platform engine for 2D/3D games and visualizations. Young, strong and crazy!
http://dgle.dronprogs.org
GNU Lesser General Public License v3.0
162 stars 39 forks source link

Incorrect CDCPFileSystem::Find() results #232

Open ash3D opened 7 years ago

ash3D commented 7 years ago

CDCPFileSystem::Find uses regexp to perform mask matching globally at the whole path scope. It can result in false matches. For example path "dir1\dir2\test.exe" will be incorrectly matched with "dir1\*.exe" mask.

In order to fix this mask matching should be happened recursively locally at directory scope.