mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add i18n to iOS
This commit is contained in:
@@ -158,7 +158,7 @@ class FilePickerDelegate: NSObject, UIDocumentPickerDelegate {
|
||||
} else {
|
||||
url.path
|
||||
}
|
||||
if !FileManager.default.createFile(atPath: uPath, contents: nil) {
|
||||
if !FileManager.default.createFile(atPath: uPath, contents: Data.init()) {
|
||||
result(FlutterError(code: "FAILED_TO_CREATE_FILE", message: nil, details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user