Emilua docs
Home Blog
Get the PDF
0.10 0.11 0.12 0.4 0.5 0.6 0.7 0.8 0.9
Get the EPUB
0.10 0.11 0.12 0.4 0.5 0.6 0.7 0.8 0.9
Emilua API 0.6
    • Conventions
    • ChangeLog
    • Tutorial
      • Getting started
      • Working with streams
      • Alternative projects
      • Internals
      • Interruption API
      • Lua 5.1
      • Modules
      • Errors
      • Sandboxes
      • Linux namespaces
      • C++ embedder API
    • Reference
      • generic_error
      • asio_error
      • format
      • actor system
        • inbox
        • spawn_vm
        • spawn_context_threads
      • byte_span
      • filesystem
        • path
        • mode
        • directory_entry
        • directory_iterator
        • recursive_directory_iterator
        • absolute
        • canonical
        • weakly_canonical
        • relative
        • proximate
        • current_working_directory
        • copy
        • copy_file
        • copy_symlink
        • create_directory
        • create_hard_link
        • create_symlink
        • mkfifo
        • mknod
        • makedev
        • equivalent
        • file_size
        • hard_link_count
        • clock
        • last_write_time
        • chown
        • chmod
        • read_symlink
        • remove
        • rename
        • resize_file
        • is_empty
        • exists
        • is_block_file
        • is_character_file
        • is_directory
        • is_fifo
        • is_other
        • is_regular_file
        • is_socket
        • is_symlink
        • space
        • status
        • temp_directory_path
        • umask
        • cap_get_file
        • cap_set_file
      • fiber
        • spawn
        • this_fiber
        • mutex
        • recursive_mutex
        • condition_variable
        • future
      • file
        • open_flag
        • random_access
        • stream
        • read_all_at
        • read_at_least_at
        • write_all_at
        • write_at_least_at
      • ip
        • address
        • address_info_flag
        • get_address_info
        • get_name_info
        • connect
        • host_name
        • tostring
        • toendpoint
        • message_flag
        • tcp.acceptor
        • tcp.socket
        • udp.socket
      • json
      • json.writer
      • pipes
        • read_stream
        • write_stream
        • pair
      • regex
      • serial_port
      • time
        • sleep
        • steady_clock
        • steady_timer
        • system_clock
        • system_timer
        • high_resolution_clock
      • stream
        • write_all
        • write_at_least
        • read_all
        • read_at_least
        • scanner
      • system
        • arguments
        • environment
        • in_
        • out
        • err
        • exit
        • signal
        • signal.raise
        • signal.set
        • signal.ignore
        • signal.default
        • spawn
        • Process credentials
          • getresuid
          • getresgid
          • setresuid
          • setresgid
          • getgroups
          • setgroups
          • linux_capabilities
        • Process & job control
          • getpid
          • getppid
          • kill
          • getpgrp
          • getpgid
          • setpgid
          • getsid
          • setsid
        • FreeBSD jails
          • jail_set
          • jail_get
          • jail_remove
          • jailparam_all
      • tls
        • context
        • context_flag
        • socket
      • unix
        • datagram_socket
        • message_flag
        • stream_acceptor
        • stream_socket
        • seqpacket_acceptor
        • seqpacket_socket
      • file_descriptor

filesystem.exists

  • Synopsis
  • Description
Edit this Page Source Repository
  • Emilua API
  • Reference
  • filesystem
  • exists

For the latest stable version, please use Emilua API 0.11!

filesystem.exists

filesystem.exists

  • Synopsis
  • Description

Synopsis

local fs = require "filesystem"
fs.exists(p: fs.path) -> boolean

Description

Checks whether the given path refers to an existing file or directory.

is_empty is_block_file
  • Beast
    • 1.1current
  • Bech32
    • 1.1current
    • 1.0
  • Botan
    • 1.2current
    • 1.1
    • 1.0
  • Dumb D-Bus
    • 0.1current
  • Emilua API
    • 0.11current
    • 0.10
    • 0.9
    • 0.8
    • 0.7
    • 0.6
    • 0.5
    • 0.4
  • INI
    • 1.0current
  • libsecp256k1
    • 0.5current
  • Protocol
    • 1.0current
  • Qt5
    • 1.0current
  • Qt6
    • 1.2current
    • 1.1
    • 1.0
  • Telegram tdlib
    • 1.0current
  • this_thread
    • 1.0current

This page was built using a customized version of the Antora Spring UI.

The source code for this UI is licensed under the terms of the Mozilla Public License Version 2.0.