Number of file in a folder

Post your questions and help other users.

Moderator: Martin

Post Reply
ahmadmll
Posts: 69
Joined: 06 Jul 2013 15:02

Number of file in a folder

Post by ahmadmll » 18 Sep 2013 11:04

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...

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

Re: Number of file in a folder

Post by Martin » 18 Sep 2013 17:36

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

ahmadmll
Posts: 69
Joined: 06 Jul 2013 15:02

Re: Number of file in a folder

Post by ahmadmll » 19 Sep 2013 08:06

thanks Martin!!!!!!!!!!!!!!!!

Post Reply