News for hackers. Stuff that matters.
Re:window.showDirectoryPicker opens up a whole new world by danhardman on Monday June 22, 2026 @03:42PM (#48635039)
A few people have suggested adding a blacklist for dangerous directories or validating directories are empty first.

Why not just make the API create a new directory rather than selecting one? There's still a risk people create a directory in a shared location - but at least they're only risking the new directory then, right?

Re:window.showDirectoryPicker opens up a whole new world by Ajedi32 on Monday June 22, 2026 @04:03PM (#48635323)
I think the intended use case is for things like "give my music player access to my music library" or "open a project directory in this IDE", which wouldn't work well if every app were confined to its own directory.
Re:window.showDirectoryPicker opens up a whole new world by danhardman on Monday June 22, 2026 @05:49PM (#48636699)
I guess, but it seems pretty typical to expect to install a new software or start a new project and require some form of loading/importing content in. It wouldn't exactly destroy the experience or at least the trade-off seems worth it imo