I am asynchronously downloading image files with NSURLRequest.
Paths to files are indirect. After downloading a file, is there an easy way to get the final path (filename)?
Cheers
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NSURL has two methods:
These will give you the full path in URL or string form.
These methods rely on the baseURL property of the NSURL to be set so they can construct the full path, but if you downloaded the file I assume that the baseURL must have been correctly set, otherwise it couldn’t have worked.