darc.get_file - Nekroze/darc GitHub Wiki

darc.get_file( path, file, verify = False )

Description

This function will load a file either by extracting it from a Darc archive or, if override is enabled using darc.set_override(), will load a file that matches the given path and file name but resides outside of any .darc files.

If verify is True then the file will be hashed after loading and verified against the stored hash for that file and will if the file does not pass the hash check it will return None.

Usage

file = darc.get_file( "demo/test" , "test.gif" )