logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dnsjit.core.file - OS file operations

Authors And Contributors

       Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

       Maintained by DNS-OARC

              https://www.dns-oarc.net/

Bugs

       For issues and feature requests please use:

              https://github.com/DNS-OARC/dnsjit/issues

       For question and help please use:

              admin@dns-oarc.net

dnsjit                                                1.5.0                                  dnsjit.core.file(3)

Description

       Module that exposes some file operations that are missing from Lua.

   Cfunctions
       core_file_exists(path/filename)
              Function  that takes a string and uses stat() to check if that path/filename exists.  Returns zero
              if it exists.

Name

       dnsjit.core.file - OS file operations

Synopsis

         require("dnsjit.core.file")
         local ffi = require("ffi")
         if ffi.C.core_file_exists("path/file") == 0 then
             ...
         end

See Also