Condition with file extension

Post your questions and help other users.

Moderator: Martin

Post Reply
digitalSeb
Posts: 3
Joined: 27 Oct 2016 07:16

Condition with file extension

Post by digitalSeb » 30 Oct 2016 18:54

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Condition with file extension

Post by Martin » 31 Oct 2016 19:29

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

Post Reply