select

Post your questions and help other users.

Moderator: Martin

Post Reply
Atbl
Posts: 14
Joined: 04 Dec 2015 16:26

select

Post by Atbl » 04 Dec 2015 16:30

How to select all the files in a folder at a specified location containing some specific text or keyword ??

And is there way to copy and paste files (not move file as it can not be moved in non rooted phone) ??

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

Re: select

Post by Martin » 04 Dec 2015 20:34

Hi,

You could list all files with action Init Variable File List, loop over the files and read each file with action Init Variable Text File, check with a script that the variable contains the text and then copy the file to the new location with action Copy File.

Regards,
Martin

Atbl
Posts: 14
Joined: 04 Dec 2015 16:26

Re: select

Post by Atbl » 05 Dec 2015 02:45

Hi Martin,
I didn't understand what you are trying to say.
Please can you post the flow....

And I need to cut and paste files separately and not copy files....

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

Re: select

Post by Martin » 07 Dec 2015 20:02

Hi,

Please check flow TextFileChecker.
The flow first loads the list of text files then loops over each file, loads the text in the file and checks if the text contains the word "test" (Expression: contains...).
You could replace the Notification action at the bottom with a copy action, however I don't understand what you mean by 'cut and paste files'. Can't you copy the file to the new location and then delete the old file?

Regards,
Martin

Post Reply