Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to read all folder name in a directory. Folder name is "DATE WISE LIKE '2018_05_28'". Then i will delete all folder. Only 'this date folder will not delete'.

How can i do it??

What I have tried:

I am tried to do this job. Please anyone help me.

Thanks in advance.
Posted
Updated 27-May-18 19:17pm

1 solution

You can use a DirectoryReader. There's an example in the PhoneGap documentation:

PhoneGap API Documentation - DirectoryReader[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900