cbf25999f0
COMING IN THE FULL RELEASE: - A user system - A functional IPC (Inter-Process Communication) system THINGS CAN AND WILL CHANGE FROM NOW UNTIL THE FINAL RELEASE.
16 lines
283 B
Lua
16 lines
283 B
Lua
local file = ...
|
|
local fs = require("filesystem")
|
|
|
|
if not file then
|
|
shell.run("help rm")
|
|
return
|
|
end
|
|
if file:sub(1, 1) ~= "/" then
|
|
file = fs.concat(shell.workingDirectory, file)
|
|
end
|
|
if not fs.exists(file) then
|
|
print("\27[91mFile does not exist.")
|
|
return
|
|
end
|
|
fs.remove(file)
|