Page 1 of 1

Number of file in a folder

Posted: 18 Sep 2013 11:04
by ahmadmll
Hi my dear friends
How can i create a flow to compute how many files there are in special folder and save it in global variable?
Thanks...

Re: Number of file in a folder

Posted: 18 Sep 2013 17:36
by Martin
Hi,

Following actions should work:
-action Init Variable File List: /sdcard/folder/* to list all files in variable 'files'
-action Script: global_file_count = length(files) to count the number of files and store the result in the global variable

Regards,
Martin

Re: Number of file in a folder

Posted: 19 Sep 2013 08:06
by ahmadmll
thanks Martin!!!!!!!!!!!!!!!!