Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
itdirectorate
Posts: 23
Registered: ‎07-05-2013
My Device: Z10
My Carrier: Binus
Accepted Solution

How to get list of files using BB10 native cascade?

Hi there,

 

Please help me how to get list of all files in the root directory of memory card. I try using QDir::entryInfoList and then iteratively use QFileInfo::isFile or isDir to find all files in the memory card. But i can't find the files or directory i found from root path only like this .,/,/,/,/. Can someone help me please? 

 

Thanks for any help.

Victor.

Please use plain text.
Developer
simon_hain
Posts: 16,042
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: How to get list of files using BB10 native cascade?

take a look at https://developer.blackberry.com/native/reference/cascades/qdiriterator.html
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Developer
itdirectorate
Posts: 23
Registered: ‎07-05-2013
My Device: Z10
My Carrier: Binus

Re: How to get list of files using BB10 native cascade?

Thank you simon! It works!

Please use plain text.