GeezerVison is showing github.com — Fixed ExportFile not always truncating the overwritten file (fixed #61) · yasirkula/UnityNativeFilePicker@c4facf5
File tree
Expand file treeCollapse file tree
Open diff view settings
.github/AAR Source (Android)/java/com/yasirkula/unity
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/AAR Source (Android)/java/com/yasirkula/unity/NativeFilePickerExportFragment.java +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -128,7 +128,7 @@ private boolean ExportMultipleFilesToDirectory( ArrayList<String> files, Uri dir |
128 | 128 |
|
129 | 129 | try |
130 | 130 | { |
131 | | - result &= WriteFileToStream( file, getActivity().getContentResolver().openOutputStream( safFile.getUri() ) ); |
| 131 | + result &= WriteFileToStream( file, getActivity().getContentResolver().openOutputStream( safFile.getUri(), "rwt" ) ); |
132 | 132 | } |
133 | 133 | catch( Exception e ) |
134 | 134 | { |
@@ -204,7 +204,7 @@ else if( files.size() == 1 ) |
204 | 204 | { |
205 | 205 | try |
206 | 206 | { |
207 | | - result = WriteFileToStream( file, getActivity().getContentResolver().openOutputStream( data.getData() ) ); |
| 207 | + result = WriteFileToStream( file, getActivity().getContentResolver().openOutputStream( data.getData(), "rwt" ) ); |
208 | 208 | } |
209 | 209 | catch( Exception e ) |
210 | 210 | { |
|
Collapse file
Copy file name to clipboard Collapse file
Copy file name to clipboardExpand all lines: Plugins/NativeFilePicker/README.txt +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -= Native File Picker for Android & iOS (v1.4.0) = |
| 1 | += Native File Picker for Android & iOS (v1.4.1) = |
2 | 2 |
|
3 | 3 | Documentation: https://github.com/yasirkula/UnityNativeFilePicker |
4 | 4 | FAQ: https://github.com/yasirkula/UnityNativeFilePicker#faq |
|
Collapse file
Copy file name to clipboardExpand all lines: package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | { |
2 | 2 | "name": "com.yasirkula.nativefilepicker", |
3 | 3 | "displayName": "Native File Picker", |
4 | | - "version": "1.4.0", |
| 4 | + "version": "1.4.1", |
5 | 5 | "documentationUrl": "https://github.com/yasirkula/UnityNativeFilePicker", |
6 | 6 | "changelogUrl": "https://github.com/yasirkula/UnityNativeFilePicker/releases", |
7 | 7 | "licensesUrl": "https://github.com/yasirkula/UnityNativeFilePicker/blob/master/LICENSE.txt", |
|