SQLite Forum

Possible bug in .read when a directory is specified?
I have a file named v3_port.sql with some SQL statements in it, and also a directory named v3_port.  Maybe not the best idea, but that’s what I had.

I entered the command:

   .read v3_port

I meant to say v3_port.sql, but I left off the extension due to a habit formed when I was working with Oracle.  Strangely, it appeared to do nothing at all when I specified the directory.  There were no error messages and as far as I can tell it did not try to read any of the files in that directory.

Is this expected behavior?  I would have preferred an error message, “Hey!  Wake up!  That’s a directory!”.  But, maybe there’s a good reason why it doesn’t do that.