'Safari can't open a directory

The Finder-like browser in Safari (14.1.2) can't open a particular directory (let's call it ~/problemdir/) on my macbook (I'm running macOS 10.14.6), so when I'm using my web-based email and try to attach a file ~/problemdir/somesubdir/somefile, I can't browse past ~/problemdir/.

Does anyone know how I can get Safari's file browser to open this directory?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source