13 lines
245 B
Lua
13 lines
245 B
Lua
local args = {...}
|
|
local file = args[1]
|
|
args = nil
|
|
local fs = import("filesystem")
|
|
|
|
if file:sub(1, 1) ~= "/" then
|
|
file = shell.workingDirectory .. file
|
|
end
|
|
if not fs.exists(file) then
|
|
print("\27[91mFile does not exist.")
|
|
end
|
|
fs.remove(file)
|