filename_mkdir_encoded


Description:


[ Version ( since = "3.4" ) ]
public string? filename_mkdir_encoded (string basepath, string fileprefix, string? filename, int fileindex)

Creates a local path constructed from basepath / fileprefix + "-" + filename, and makes sure the path basepath exists.

If creation of the path fails, then NULL is returned.

Parameters:

basepath

base path of a file name; this is left unchanged

fileprefix

prefix for the filename; this is encoded

filename

file name to use; this is encoded; can be null

fileindex

used when filename is NULL, then the filename is generated as "file" + fileindex

Returns:

Full local path like build_filename except that fileprefix and filename are encoded to create a proper file elements for a file system. Free returned pointer with g_free.


Namespace: E