How to remove a specific repeatedly uploaded file?
Posted: Thu Nov 01, 2018 11:39 am
We have a client that keeps uploading a Thumbs.db file every 5 minutes and it creates a ton of triggers. They also upload additional files periodically so I can't quite ignore it, but I want to the project to delete the Thumbs.db file every single time they upload before it even goes thru the rest of the project to push the files to another location.
I tried doing this but it bombs out with "ERROR [8099 - Create File List] An unexpected error occurred. Variable not found: Thumbs.db" and I'm a little confused:
I tried doing this but it bombs out with "ERROR [8099 - Create File List] An unexpected error occurred. Variable not found: Thumbs.db" and I'm a little confused:
Code: Select all
I know this is going to be a simple solution but it's driving me crazy trying to get this working. Thanks <createFileList fileListVariable="files" version="1.0">
<fileset dir="/path/to/inbound/" recursive="false" sortedBy="name" sortOrder="ascending">
<wildcardFilter>
<include pattern="*" caseSensitive="false" />
</wildcardFilter>
</fileset>
</createFileList>
<if label="If Thumbs.db File" condition="${files eq Thumbs.db}">
<delete label="Delete Thumbs.db file" file="/path/to/inbound/Thumbs.db" version="1.0" onError="continue" />
<else>