mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-07 07:50:26 +00:00
Removed shell call from listAll
This commit is contained in:
parent
ca865a5e9b
commit
38981e19bd
@ -400,7 +400,7 @@ local function listAll(path, includePath)
|
||||
local fc = fs.combine
|
||||
for i = 1, #list do
|
||||
if allowReadOnly or (not fs.isReadOnly(fc(path, list[i]))) then
|
||||
if allowPackPD or fc(path, list[i]) ~= shell.getRunningProgram() then
|
||||
if allowPackPD or fc(path, list[i]) ~= (shell and shell.getRunningProgram()) then
|
||||
if fs.isDir(fc(path, list[i])) then
|
||||
if #fs.list(fc(path, list[i])) == 0 then
|
||||
output[#output+1] = (includePath and fc(path, list[i]) or list[i]) .. "/"
|
||||
|
Loading…
Reference in New Issue
Block a user