delete every file/folder Except a specific folder

Forums: 

Hi all

im trying to run a custom clean on every file/folder in a specific dir (~/ZH_tmp) Except a specific folder ("Teiler")

i tried this

<?xml version="1.0" encoding="UTF-8"?>

ZHtmp
zeltak temp dir

All
Clean all the junk files

yet it leave many additional files and folder alongside the Teiler folder

any clue?

thx

Z

Tip: This forum uses HTML markup, so your XML got eaten. Any XML must be escaped
using HTML entities.

You wrote
<action command="delete" search="walk.all" path="~/ZH_tmp/*[!Teiler]"/>

Try
<action command="delete" search="walk.all" path="~/ZH_tmp/" nregx="!Teiler"/>

---
Andrew, lead developer

perfect!

thx so much Andrew and thx for your great work!

Z