10 lines
302 B
Plaintext
10 lines
302 B
Plaintext
|
refresh_directory_contents = function()
|
||
|
Directory_contents = {}
|
||
|
local files_info = nativefs.getDirectoryItemsInfo(Directory)
|
||
|
for _,file_info in ipairs(files_info) do
|
||
|
if file_info.type == 'file' then
|
||
|
table.insert(Directory_contents, file_info.name)
|
||
|
end
|
||
|
end
|
||
|
table.sort(Directory_contents)
|
||
|
end
|