Hi,
Was trying to do a listing of files and folders in a path /My Pictures. But I noticed that the result returned are in small caps if the return value is for a file will be of small caps but the return value for a folder will be of original case. Am I using the wrong function to get the folder and files path as it is not accurate(incorrect case). The sample output is after the code below
if let client = DropboxClientsManager.authorizedClient{
// List contents of app folder
client.files.listFolder(path: "/My Pictures", recursive: true, includeMediaInfo: true, includeDeleted: false, includeHasExplicitSharedMembers: false, includeMountedFolders: false, limit: nil, sharedLink: nil).response(completionHandler: { (response, error) in
if let result = response {
for entry in result.entries{
if !(entry is Files.FileMetadata){
print("folder path is \(entry.pathDisplay!)")
}else{
print("file path is \(entry.pathDisplay!)")
}
}
}
})
}
Output:
folder path is /My Pictures
folder path is /My Pictures/April 2013
file path is /my pictures/April 2013/IMG_5145.JPG
file path is /my pictures/April 2013/IMG_5152.JPG
file path is /my pictures/April 2013/IMG_5081.JPG
file path is /my pictures/April 2013/IMG_5084.JPG
file path is /my pictures/April 2013/IMG_5148.JPG
file path is /my pictures/April 2013/IMG_5083.JPG
file path is /my pictures/April 2013/IMG_5146.JPG
file path is /my pictures/April 2013/IMG_5122.JPG
file path is /my pictures/April 2013/IMG_5149.JPG
file path is /my pictures/April 2013/IMG_5107.JPG
file path is /my pictures/April 2013/IMG_5108.JPG
file path is /my pictures/April 2013/IMG_5085.JPG
file path is /my pictures/April 2013/IMAG0101.jpg
file path is /my pictures/April 2013/IMG_5079.JPG
file path is /my pictures/April 2013/IMG_5106.JPG