Lua
C++
Edit

FileHidden

This function returns the hide state of the specified file path.

Syntax

Parameter Description
path full or relative

Returns

Returns true if the file exists and is hidden, otherwise false is returned.

Example

path = CurrentDir()

dir = LoadDir(path)
if (path == "") then
   path = "."
end

for _, file in ipairs(dir) do
   print("Name: " .. file)

   if (path ~= "") then
      file = path .. "/" .. file
   end

   print("Type: " .. FileType(file))
   print("Time: " .. FileTime(file))
   print("Size: " .. FileSize(file))
   print("Hidden: " .. tostring(FileHidden(file)))

   print("")
end
Copyright © 2024 Ultra Software.
All rights reserved.