This commit is contained in:
tommy 2024-09-27 17:44:39 -04:00
parent 6d8c4355a8
commit fe49284843
Signed by: tommy
GPG Key ID: 56B522AB2EF2263A

View File

@ -30,7 +30,7 @@ function CommandCollector:Collect()
local CommandsContainerPath = self.Prefix..'Commands/' local CommandsContainerPath = self.Prefix..'Commands/'
for File in io.popen('dir "./src/'..CommandsContainerPath..'" /b'):lines() do for File in io.popen('ls ./src/'..CommandsContainerPath):lines() do
if File:sub(1, 1) ~= IGNORE_STARTING_FILE_NAME then if File:sub(1, 1) ~= IGNORE_STARTING_FILE_NAME then
local Success, Return = pcall(require, RELATIVE_PATH_TO_COMMANDS..CommandsContainerPath..File) local Success, Return = pcall(require, RELATIVE_PATH_TO_COMMANDS..CommandsContainerPath..File)
if Success then if Success then