how can I get the data of cached images SDWebImage
<p>I'm using SDWebImage library to cache web images in my UICollectionView:</p>

<pre><code>cell.packItemImage.sd_setImage(with: URL(string: smileImageUrl[indexPath.row]))
</code></pre>

<p>but I want to save the cached images locally in a file instead of downloading them again</p>

<pre><code>FileManager.default.createFile(atPath: newPath, contents: Data(contentsOf:  URL(string: snapchildvalue[Constants.smiles.smileImageUrl] as! String)!), attributes: nil)
</code></pre>

<p>is there a way to get the data of cached images </p>