The intent is that you should pass a file name, not a directory name. But of course we can make it more robust against this.
The intent is that you should pass a file name, not a directory name. But of course we can make it more robust against this.