GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
zap_resource(3) Arcan Lua API zap_resource(3)

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
June 2022 resource

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.