---
name: "dnsjit.core.file"
section: "3"
platform: "linux"
package: "dnsjit"
version: "1.5.0-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dnsjit.core.file"
---

# dnsjit.core.file(3)

OS file operations

## 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

## DESCRIPTION

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

### C functions

- 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.

## 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*
