Adds missing extension to name property of PlatformFile (#444)
This commit is contained in:
parent
626ab4d4a8
commit
b690afe33e
|
@ -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
|
## 2.0.9+1
|
||||||
Minor fix on CHANGELOG regarding version `2.0.9`.
|
Minor fix on CHANGELOG regarding version `2.0.9`.
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
NSDictionary<NSFileAttributeKey, id> * fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:path error:nil];
|
NSDictionary<NSFileAttributeKey, id> * fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:path error:nil];
|
||||||
|
|
||||||
[files addObject: [[[FileInfo alloc] initWithPath: path
|
[files addObject: [[[FileInfo alloc] initWithPath: path
|
||||||
andName: [[path lastPathComponent] stringByDeletingPathExtension]
|
andName: [path lastPathComponent]
|
||||||
andSize: [NSNumber numberWithLongLong: [@(fileAttributes.fileSize) longLongValue] / 1024]
|
andSize: [NSNumber numberWithLongLong: [@(fileAttributes.fileSize) longLongValue] / 1024]
|
||||||
andData: loadData ? [NSData dataWithContentsOfFile:path options: 0 error:nil] : nil] toData]];
|
andData: loadData ? [NSData dataWithContentsOfFile:path options: 0 error:nil] : nil] toData]];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: file_picker
|
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.
|
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
|
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
||||||
version: 2.0.9+1
|
version: 2.0.10
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
|
|
Loading…
Reference in New Issue