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

FreeBSD Manual Pages

  
 
  

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

NAME
     resource - Check if the requested resource path exists.

SYNOPSIS
     longname. typedescr
     resource( string:name )
     resource( string:name, int:domain )

DESCRIPTION
     This  function  tries to resolve the path description indicated by name and
     optionally filtered by domain. The accepted domain  values follow the  same
     rules  as other resource related functions, see glob_resource . By default,
     all user- accessible domains are scanned and the resolved result  (or  nil)
     is returned as longname .	typedescr  will be set to "directory", "file" or
     "not found".

EXAMPLE
     function resource0()
	   print( resource("images/icons/arcanicon.png") );
	   print( resource("test.png", APPL_RESOURCE) );
     end

resource			   August 2026			     resource(3)

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

home | help