Code Monkey home page Code Monkey logo

Comments (7)

kgamecarter avatar kgamecarter commented on May 31, 2024 2

Android implementation
https://github.com/googlesamples/android-DirectorySelection

from flutter_file_picker.

miguelpruivo avatar miguelpruivo commented on May 31, 2024

This was actually wip to the current deployed version 1.3.0, however, this should be more discussed as Android actually allows it but iOS don't.

In iOS we usually either use the share capabilities to save/send some data or we use the app's data container to keep it. If we want to retrieve some directory it is possible but I believe that a concrete file pick is always required.

I was trying to avoid platform-specific features with this plugin and it's been already a tough task to fulfill because they differ fairly in the way they handle file picking. Nevertheless, I'm up to suggestions.

from flutter_file_picker.

rockgecko-development avatar rockgecko-development commented on May 31, 2024

When I select a directory via getMultiFilePath via iCloud Drive, I get a folder containing .<orig name>.icloud files, of 175 bytes each.
I suppose this is because iCloud doesn't download the entire directory when you select it, unlike for individual files. But what do i do with these .icloud files, and how do I get the originals?

from flutter_file_picker.

miguelpruivo avatar miguelpruivo commented on May 31, 2024

@rockgecko-development you are saying that you are able to select a folder when multi picking files?

from flutter_file_picker.

rockgecko-development avatar rockgecko-development commented on May 31, 2024

@miguelpruivo yes.
Steps to reproduce:
iPhone 6, iOS 12
Call getMultiFilePath (it's not possible to select a folder in iCloud Drive with getFilePath)
Under Locations, choose iCloud Drive, then in the top bar press Select, which displays checkboxes for each item. Select a folder, then Open
In the result map, you get a folder which contains the .<orig name>.icloud placeholder files. Do you know what to do with these?

from flutter_file_picker.

miguelpruivo avatar miguelpruivo commented on May 31, 2024

Thank you @rockgecko-development. Definitely I wasn’t expecting folders of being able to be picked in iOS so that’s probably the issue.

I’ll certainly look forward this in a future update.

from flutter_file_picker.

miguelpruivo avatar miguelpruivo commented on May 31, 2024

Moved to #99.

from flutter_file_picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.