In fact, I was wrong, it’s working fine for all platforms if you pass ‘’ as path, except for web. I’ve sent a PR fixing it https://github.com/ionic-team/capacitor/pull/1818.
For you it was not working on any platform because you were using the web implementation for all (according to No permission to read a file my app wrote to /Data dir?)