Skip to content
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

FilePicker.platform.getDirectoryPath() returns on MacOS path containing symbolic links #1685

Open
stephane-archer opened this issue Jan 21, 2025 · 0 comments
Labels
bug Something isn't working desktop The issue applies to Windows, Linux or MacOS implementations. macos new issue An issue that hasn't yet been seen from the maintainer

Comments

@stephane-archer
Copy link
Collaborator

FilePicker.platform.getDirectoryPath() returns on MacOS path containing symbolic links

    String? selectedDirectory = await FilePicker.platform.getDirectoryPath();
    if (selectedDirectory == null) {
      // User canceled the picker
      return;
    }
    String selectedDirectoryCleaned =
        await Directory(selectedDirectory).resolveSymbolicLinks();

here:
selectedDirectory == "/Volumes/Macintosh HD/Users/fractale/Desktop/LutTests"
selectedDirectoryCleaned == "/Users/fractale/Desktop/LutTests"

@stephane-archer stephane-archer added bug Something isn't working desktop The issue applies to Windows, Linux or MacOS implementations. macos new issue An issue that hasn't yet been seen from the maintainer labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working desktop The issue applies to Windows, Linux or MacOS implementations. macos new issue An issue that hasn't yet been seen from the maintainer
Projects
None yet
Development

No branches or pull requests

1 participant