Skip to content

User can select 'wrong' folder #10

@ConfusedVorlon

Description

@ConfusedVorlon

I just noticed this in my swift fork.
If the user uses the recents dropdown in the file picker, then they can select a folder which is not the requested one.
This causes an incorrect 'true' return in the requestPermission flow

My fix is to double-check on select

https://github.com/ConfusedVorlon/SwiftySandboxFileAccess/blob/2.0.0/SwiftySandboxFileAccess/Classes/SandboxFileAccessOpenSavePanelDelegate.swift

see: func panel(_ sender: Any, validate url: URL) throws

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions