Skip to content

result of chooseEntry is not correct #245

Open
@kevin-sakemaer

Description

@kevin-sakemaer

Hi,
when i use chooseEntry it return a ChooseEntryResult object but the fileEntries value of this object is always null.

    chrome.ChooseEntryOptions chooseEntryOptions =
        new chrome.ChooseEntryOptions(type: chrome.ChooseEntryType.OPEN_FILE);
    chrome.ChooseEntryResult chooseEntryResult =
        await chrome.fileSystem.chooseEntry(chooseEntryOptions);
    FileEntry fileEntry;

    print(chooseEntryResult.entry.isFile);
    print(chooseEntryResult.entry.name);

    Metadata meta = await chooseEntryResult.entry.getMetadata();

    print(meta.size);
    print(chooseEntryResult.fileEntries); // this line print null

    if (chooseEntryResult.fileEntries.length == 0) return;
    else {
      fileEntry = chooseEntryResult.fileEntries[0];
    }

If you have an idea, thanks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions