Languages

Menu
Sites
Language
How to get a list of files in a directory?

In Android , use this:

File f = new File(filePath);

File[] files = f.listFiles();

How to do this in Tizen???

How to get all files in a directory???

Responses

2 Replies
Alex Ashirov

Hi,

Please take a look at the following example:

https://developer.tizen.org/dev-guide/2.2.0/org.tizen.native.apireference/classTizen_1_1Io_1_1DirEntry.html

 

// Open the directory

r = dir.Construct(App::GetInstance()->GetAppDataPath() + dirName);

if (IsFailed(r))

{

goto CATCH;

}

// Read all the directory entries

pDirEnum = dir.ReadN();

Alex Dem

Hi,
Try to look at this summary:
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.native.appprogramming/html/tutorials/io_tutorial/handling_directories.htm
Alexey.