Closed hasanmhallak closed 3 weeks ago
This issue is stale because it has been open for 7 days with no activity.
bump
This issue is stale because it has been open for 7 days with no activity.
Hi, I really don't have the time right now to look into this — just flagging for triage so it doesn't close on its own, I'd thank if anyone has the time to investigate and issue a PR. Shouldn't be a major thing, if this is related to a specific platform, I suspect of new iOS SDK breaking changes.
This issue is stale because it has been open for 7 days with no activity.
bump
This issue is stale because it has been open for 7 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Bump. I don't think this issue has been flagged correctly to not close automatically, could @miguelpruivo please fix that?
Bump. I don't think this issue has been flagged correctly to not close automatically, could @miguelpruivo please fix that?
The latest version seems to have fixed this issue,you can try it.
The latest version seems to have fixed this issue,you can try it.
Thanks, I missed that update, works fine now 👍🏻
Describe the bug It seems like the
FilePicker.platform.getDirectoryPath()
will move the original directory instead of copying it to tmp/cache directory.Platform
Platform OS version IOS 17.2
How are you picking?
Details to reproduce the issue Try to use
FilePicker.platform.getDirectoryPath()
on any directory.Error Log N/A
Screenshots and/or video
https://github.com/miguelpruivo/flutter_file_picker/assets/95232508/f0e1f64f-4b6c-47c8-8bbb-a3a7328bcda4
Flutter Version details
Additional context When invoking
FilePicker.platform.getDirectoryPath();
on Android, it successfully returns the actual path of any selected directory.However, on iOS, due to the limitations you've outlined in your FAQ, one must copy the file or directory to a temporary directory for access.
An issue arises with
FilePicker.platform.getDirectoryPath();
on iOS, where it moves the directory instead of copying it, contrary to the expected behavior. As a result, the user will permanently lose access to that directory.