The readme doc has told when create file in GridFS, close should be called, that's clear.
But usually we also close a file after opening for reading. so, should I close file after slurping from GridFS, I try it, but raise error (file.lua 150 line, nil value).
No, you shouldn't. close is just for writing: as it's said in docs, it just writes metadata and last chunk.
I guess i should've called it finalize, to avoid confusion.
Hi @isage:
The readme doc has told when create file in GridFS, close should be called, that's clear.
But usually we also close a file after opening for reading. so, should I close file after slurping from GridFS, I try it, but raise error (file.lua 150 line, nil value).