Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
zap_resource(3) 		  Arcan Lua API 		 zap_resource(3)

NAME
     zap_resource  -  Unlink  a file in the appltemp path or writable user name-
     space.

SYNOPSIS
     bool:success, boolres
     zap_resource( string:res )
     zap_resource( string:res, string:namespace )

DESCRIPTION
     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.

EXAMPLE
     function zap_resource0()
	   open_rawresource("test.out");
	   zap_resource("test.out");
	   if (resource("test.out")) then
		 warning("something went horribly wrong.");
	   end
     end

MISUSE
     function zap_resource0()
	   zap_resource("/../../../../../../usr/bin/arcan");
     end

MISUSE
     function zap_resource1()
	   zap_resource("/../resources/scripts/mouse.lua");
     end

resource			   August 2026			 zap_resource(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=zap_resource&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help