Page 1 of 1
recursive scandir for new files
Posted: 10 Nov 2018 15:20
by anuraag
When doing a recurive scan for files inside a directory, if that directory contains folder inside then Init Variable File List-include changes only don't work. It gives all files instead of changes only.
Re: recursive scandir for new files
Posted: 10 Nov 2018 16:44
by Desmanto
AFAIR, include changes only will list changes if executed the second time. Somehow it store the temporary changes log somewhere. Probably until next automagic start/stop?
Re: recursive scandir for new files
Posted: 11 Nov 2018 01:41
by anuraag
I know it will show new file on second run but its not.
I have attachwd flow. Just set path in 1st action and make sure that folder contains atleast one folder inside.
http://automagic4android.com/flow.php?i ... 75521aee4d
Re: recursive scandir for new files
Posted: 12 Nov 2018 23:15
by Desmanto
I got the {file} contains all the files from the folder and subfolders. {dir} is blank (as removed in every iteration).
If you want to list all files within certain folder, you can use a much shorter terminal command.
This will list all files and folders from /sdcard/download/. Later you can parse/split the path a bit and check if it is a directory. Only add the files to the new list.
Re: recursive scandir for new files
Posted: 13 Nov 2018 01:04
by anuraag
Thats really a nice cmd and saves time. Thanks