Lua
C++
Edit

FileTime

This function gets the size of a file.

Syntax

Parameter Description
path The file path to check.
packages If set to true, all loaded packages will be checked after the file system.

Returns

Returns the file time.

Example

local path = CurrentDir()

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

for i, 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: " .. FileHidden(file))
    print("")
end
Copyright © 2024 Ultra Software.
All rights reserved.