DetectFile wildcards only support folders

A recent version (I am unsure of which) added support for wildcards in the detectfile path, which is great news for everyone!

Things like DetectFile=%LocalAppData%\Packages\*.coolwin8app_* are now possible...but..

If you follow the wildcard up with anything, it breaks. IE

ie.

Works:

DetectFile=%AppData%\Mozilla\Firefox\Profiles\*\

Doesn't Work:

DetectFile=%AppData%\Mozilla\Firefox\Profiles\*\Extensions

Doesn't Work

DetectFile=%AppData%\Mozilla\Firefox\Profiles\*\webappsstore.sqlite

I actually misnamed this topic because I thought it broke with just files at first, then halfway through I relized it breaks with anything after the wildcard. A mod can ammend it if they wish

If I had to guess why... (I love writing these posts)

It's probably because the Detect lines perform a simple conditional statement to establish the presence of an application. If the conditional was performed on items in directories further down the directory tree from the point of the wildcard; a recursive operation would be required. As all the Detect entries are processed on CCleaner's initial application load event, the time consuming nature of recursive scanning would have severe performance consequences.

A little bird told me this will be fixed for next version.

Wildcard detection is only supported at the end of the path (i.e. for file and/or folder names only)

Seems Shane was correct then?

Seems Shane was correct then?

It was bound to happen eventually! :)

It was bound to happen eventually! :)

something about monkeys and Shakespeare? :)

I'm going to ignore the inference that most of my typing is utter jargon and give you a solid 'hahaha!' for the clever joke. ;)