-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Picking a folder in iOS causes the original folder to be deleted. #1412
Comments
This issue is stale because it has been open for 14 days with no activity. |
Can conform, I tried to select "AAA" folder and my app crashed with the following error: |
Observed the same issue on 6.1.1 |
This issue is stale because it has been open for 14 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Please reopen |
I created a fork to fix this issue: twinkles-twinstar/flutter_file_picker . |
I think we should reopen this issue since the package is mostly unusable if someone needs to use this plugin to select a folder. |
Are there other alternative packages available? |
fix #1412: Picking a folder in iOS causes the original folder to be deleted.
Describe the bug
This is a serious bug where users' files are deleted without them noticing. If use file_picker version 5.3.3 or higher, when an ios user picks a directory, the original directory will be deleted (actually, moved to the app's sandbox tmp directory, and the user cannot access them), and file_picker returns a path in tmp directory.
In 5.3.2 and earlier versions, file_picker will return the real absolute path of the original directory.
This BUG looks to be caused by this pull: #1311 (I'm not an ios programmer so I don't know how to fix this bug...), which moves the file or directory pointed to by the original url into the tmp directory; please restore the previous behavior (5.3.2, getting the original absolute path, which is the best, I think ?), or copy the directory to tmp (rather than moving it).
Platform
Platform OS version
iOS 16.5
How are you picking?
Details to reproduce the issue
<application-sandbox-directory>/tmp
directory).Error Log
None.
Screenshots and/or video
None.
Flutter Version details
Flutter 3.16, no probrlm.
Additional context
None.
The text was updated successfully, but these errors were encountered: