Closed leongwq closed 2 years ago
Did you find a way for deletion of the selected file?
Ive added this in my fork: https://github.com/orff/FileBrowser
PodFile:
pod 'FileBrowser', :git => 'https://github.com/orff/FileBrowser.git'
Usage:
let customPath = try! FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
let fileBrowser = FileBrowser(initialPath: customPath, allowEditing: true)
present(fileBrowser, animated: true, completion: nil)
I have added this code into my project. Im wondering how could I add a delete function. I would either need a Path or URL to get NSFileManager to delete