dnsjit.core.file(3)

πŸ“¦
version 1.5.1 Β· 5 versions
, in epel 10, epel 9, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– dnsjit.core.file β€” OS file operations πŸ’–

okay bestie, welcome to dnsjit.core.file(3), part of the dnsjit library functions manual, section 3. this one is smol but mighty, no cap 🫢


✨ SYNOPSIS ✨

like, here's the whole vibe in code form:

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

🌸 DESCRIPTION 🌸

so basically this module is the plug for all the file operations that Lua just… doesn't have? like it literally exposes the file stuff Lua forgot to give us 😭 and we're obsessed with that for it.

πŸŽ€ C functions πŸŽ€

  • core_file_exists(path/filename) β€” bestie, you hand it a string and it hits stat() to vibe check whether that path/filename actually exists. it returns zero if it does exist. that's the whole function, she's simple and she eats πŸ’…
fr fr, remember: zero means it exists. not one. zero. iykyk ⭐

πŸ‘‘ AUTHORS and CONTRIBUTORS πŸ‘‘

giving credit where credit is due, periodt:

  • Jerry LundstrΓΆm (DNS-OARC)
  • TomΓ‘Ε‘ KΕ™Γ­ΕΎek (CZ.NIC)
  • Petr Ε paček (ISC)

maintained by DNS-OARC πŸ’œ

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

πŸ’€ BUGS πŸ’€

got issues? feature requests? don't be shy, take it here:

https://codeberg.org/DNS-OARC/dnsjit/issues

got questions? need help? hit up the inbox:

admin@dns-oarc.net

and that's the whole page, bestie πŸ¦‹ this was dnsjit.core.file(3) from dnsjit version 1.5.1, part of the Library Functions Manual. slay, go check if your files exist πŸ’–βœ¨πŸŽ€