Change the last setting to include files only
![post-21882-061026000 1291486376_thumb.jpg]()
I think my problem has been misunderstood.
Time to draw on my years in software QA and get hyper-detailed with steps to reproduce.
Try the following. I just confirmed the problem on another machine running Windows Server 2008 R2.
Create a folder named "foo" in your C drive.
Create an empty file in C:\foo. Name it 1.txt.
Create another empty file in c:\foo. Name it 2.bar
Create an empty folder in c:\foo named "tmp"
At this point C:\foo\ should have the following
c:\foo\tmp\
c:\foo\1.txt
c:\foo\2.bar
In CCleaner, add a Custom File or Folder rule (Options -> Include -> Add).
Under the "Include" section browse to c:\foo.
Under the "File Types" section, select "File Types" and enter "*.bar"
Under the "Options" section, select "Include files, subfolders and the folder itself".
Run CCleaner.
When it finishes, open c:\foo.
You will see that 2.bar and the folder named "tmp" both got erased, even though the docs distinctly specify that your settings should have only resulted in 2.bar being erased.
If you downgrade to CCleaner version 2.30 and repeat these steps you will see that only 2.bar gets erased, which is what is expected even in CCleaner 3.01
Hope this makes it clearer.