recursive scandir for new files
Moderator: Martin
recursive scandir for new files
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
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?
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: recursive scandir for new files
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
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
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.
If you want to list all files within certain folder, you can use a much shorter terminal command.
Code: Select all
du -h -a -d 10 /sdcard/download
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: recursive scandir for new files
Thats really a nice cmd and saves time. Thanks