filesystem callbacks optimized for Node.lua