Page 1 of 1

Condition with file extension

Posted: 30 Oct 2016 18:54
by digitalSeb
Hello, I need a condition for a certain file extension. I want to monitor a folder and when files with a special extension are written in it they should be moved to another folder. The trigger I need exists in automagic but I can't find a condition for file extensions

Re: Condition with file extension

Posted: 31 Oct 2016 19:29
by Martin
Hi,

You can use a condition Expression: endsWith(path, ".txt");. This assumes that the actual filename is stored in a variable called path.

Regards,
Martin