Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get the path of already downloaded file? #13

Open
hardikamal opened this issue Mar 2, 2020 · 1 comment
Open

How can I get the path of already downloaded file? #13

hardikamal opened this issue Mar 2, 2020 · 1 comment

Comments

@hardikamal
Copy link

Hi,

How can I get the path of already downloaded file if the file already exist?

Thanks

@Alond
Copy link
Contributor

Alond commented Mar 26, 2020

@hardikamal , you can store filename on download compete

   func getCompleteBlock(withUrl url: String) -> SDDownloadManager.DownloadCompletionBlock {
        return { [weak self] error, fileUrl in
            if let fileUrl = fileUrl {
                UserDefaults.standard.set(fileUrl, forKey: url)
               ...
            } 
            ...
        }
   }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants