zap_resource - Unlink a file in the appltemp path or writable user
namespace.
bool:success, boolres
zap_resource( string:res )
zap_resource( string:res, string:namespace )
This function can be used to delete a file. By default this will apply only to
the appl-temp namespace. If namespace is provided and mathces a user-
defined writable namespace ID (see list_namespaces ), the
deletion will apply to a file in that namespace instead. Returns whether the
file was successfully deleted or not.
function zap_resource0()
open_rawresource("test.out");
zap_resource("test.out");
if (resource("test.out")) then
warning("something went horribly wrong.");
end
end
function zap_resource0()
zap_resource("/../../../../../../usr/bin/arcan");
end
function zap_resource1()
zap_resource("/../resources/scripts/mouse.lua");
end