+ +

+ test_file +

+ +

đź”—NAME

+

test_file

+

đź”—SYNOPSIS

+

test a file to see what it is

+

đź”—USAGE

+
local df = require "lib/dtutils.file"
+local result = df.test_file(path, test)
+

path - string - path and filename +test - char - one of d, e, f, x where

+
    +
  • d - directory
  • +
  • e - exists
  • +
  • f - file
  • +
  • x - executable
  • +
+

đź”—DESCRIPTION

+

test_file checks a specified path to see if it meets the specified test

+

đź”—RETURN VALUE

+

result - boolean - true if the path satisfies the test, false if not

+ + + +