Add action (Rename file)

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Add action (Rename file)

Post by MURTUMA » 21 Jul 2016 23:19

The most simple answer would be yes, but it is actually quite far from practical truth. Every element in a flow naturally uses some battery life. Most of the time you don't have to think about it at all but in some cases you can optimize your flows by doing some things differently or using different trigger for example. There are a few actions and trigger that can cause unnecessary battery consumption, but this behaviour is always mentioned in relevant actions and triggers.

Like I said, most of the time you don't have to think about it. If you are unsure about a specific flow, just ask it. Without specific cases this is too broad question to be answered meaningfully. Almost like "what can you code with C++?"

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Re: Add action (Rename file)

Post by wfrcrd » 22 Jul 2016 09:27

Ok another step:

move the files from different location if they have the extension pdf

I have create a condition to match if the file is a .pdf file.

the espression is:

contains(path,"*.pdf")

but even if there is a file named file.pdf the result is always false.

Where is the error?

thank you

pmgnt
Posts: 26
Joined: 15 Jul 2016 00:34

Re: Add action (Rename file)

Post by pmgnt » 16 Sep 2016 06:24

wfrcrd wrote:Ok another step:

move the files from different location if they have the extension pdf

I have create a condition to match if the file is a .pdf file.


the espression is:

contains(path,"*.pdf")

but even if there is a file named file.pdf the result is always false.

Where is the error?

thank you

"contains( )" finds certain line in lists and maps only. (may martin correct me if im wrong..)

Instead use something like;

path = "xxxx.pdf";
result = matches(path, "(?i).*pdf$");
log(result)

Locked