This function gets the size of a file.
Parameter | Description |
---|---|
path | The file path to check. |
packages | If set to true, all loaded packages will be checked after the file system. |
Returns the file time.
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