Hi,
I'm trying to remove a folder and a file from my Update Script before downloading the new stuff. Somehow the way I'm trying I don't have the right permissions. What am I doing wrong.
-- remove old
local ok, err = pcall(shell.execute,"cd..")
if not ok then
print("Problem: ",ok,err,computer.freeMemory())
end
local ok, err = pcall(shell.execute,"rm sg")
if not ok then
print("Problem: ",ok,err,computer.freeMemory())
end
local ok, err = pcall(shell.execute,"rm autorun.lua")
if not ok then
print("Problem: ",ok,err,computer.freeMemory())
end
Thanks!