Page 1 of 1
If exist
Posted: 29 Sep 2019 09:17
by Lucy
Heya darling. I read over your replies and i am wanting to reply and go further with my requests at a later time. At present im a lil stuck with something i thought would be fast and easy to create on the fly but i was wrong.
Im trying to make a flow to check if a file in my phone exist or not and if so to do other actions like read it or whatever. I tried a couple simple approaches but failed.
Please show me the light sweetie.
Re: If exist
Posted: 29 Sep 2019 10:15
by Rafi4
Hi Lucy
Use action "Init Variables File Info".
Select desired file name. Check file Exists. Use that variable in condition expression. See screen shot.
from record4
Re: If exist
Posted: 29 Sep 2019 11:29
by Lucy
Lol thanks sweetie... i almost had what you gave me but was using wrong techniques
Re: If exist
Posted: 29 Sep 2019 17:19
by Desmanto
If you already have the exact file path to check, simply use expression
Code: Select all
existsFile("/storage/emulated/0/Download/new file.txt");
Re: If exist
Posted: 30 Sep 2019 03:02
by Lucy
Yepyep all good darling.. i got it up and running thank you.
Hey can i access the "recent apps list" and if so can i envoke the "swiping or clearing" of the recent apps?
Re: If exist
Posted: 01 Oct 2019 17:24
by Desmanto
To get the result in string and reliable, you have to use execute root command, using the dumpsys command.
But if you only want to clear the recent app, you can use Control UI recents() and then find the command to swipe it out.
It is different in each ROM, so the script will be device-specific, not the same in all device.