Adds missing extension to name property of PlatformFile (#444)

This commit is contained in:
Miguel Ruivo 2020-10-22 11:07:24 +01:00
parent 626ab4d4a8
commit b690afe33e
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
## 2.0.10
Adds missing extension to `name` property of `PlatformFile`. ([#444](https://github.com/miguelpruivo/flutter_file_picker/issues/444))
## 2.0.9+1
Minor fix on CHANGELOG regarding version `2.0.9`.

View File

@ -89,7 +89,7 @@
NSDictionary<NSFileAttributeKey, id> * fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:path error:nil];
[files addObject: [[[FileInfo alloc] initWithPath: path
andName: [[path lastPathComponent] stringByDeletingPathExtension]
andName: [path lastPathComponent]
andSize: [NSNumber numberWithLongLong: [@(fileAttributes.fileSize) longLongValue] / 1024]
andData: loadData ? [NSData dataWithContentsOfFile:path options: 0 error:nil] : nil] toData]];
}

View File

@ -1,7 +1,7 @@
name: file_picker
description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support.
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
version: 2.0.9+1
version: 2.0.10
dependencies:
flutter: