I usually get paths by using NSBundle
.
But, NSBundle
does not contain Documents folder.
How to get All paths(or names) for files in Documents directory?
I usually get paths by using NSBundle
.
But, NSBundle
does not contain Documents folder.
How to get All paths(or names) for files in Documents directory?
To get files from that, you have to give the path structure...
The folderPath will return you the location of given file name.
This will give u the paths for all files under documents directory
You can get the path for each object in filePathsArray by using the below code
Here is in swift.
Print statement will print all available paths