Condition with file extension
Moderator: Martin
-
- Posts: 3
- Joined: 27 Oct 2016 07:16
Condition with file extension
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
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
You can use a condition Expression: endsWith(path, ".txt");. This assumes that the actual filename is stored in a variable called path.
Regards,
Martin