| Top |
| GCabFolder * | gcab_folder_new () |
| gboolean | gcab_folder_add_file () |
| GSList * | gcab_folder_get_files () |
| guint | gcab_folder_get_nfiles () |
| GCabCompression | compression | Read |
| gint | comptype | Read / Write / Construct Only |
| GByteArray * | reserved | Read / Write |
A GCabFolder is a handle to a folder within the Cabinet archive. A Cabinet folder is not like a directory. It is a sub-container grouping GCabFiles together, sharing some common settings like the compression method.
You can retrieve the files within a folder with
gcab_folder_get_files().
In order to add a file to a folder for creation, use
gcab_folder_add_file().
GCabFolder *
gcab_folder_new (gint comptype);
Creates a new empty Cabinet folder. Use gcab_folder_add_file() to
add files to an archive.
A Cabinet folder is not a file path, it is a container for files.
gboolean gcab_folder_add_file (GCabFolder *cabfolder,GCabFile *cabfile,gboolean recurse,GCancellable *cancellable,GError **error);
Add file
to the GCabFolder.
GSList *
gcab_folder_get_files (GCabFolder *cabfolder);
Get the list of GCabFile files contained in the cabfolder
.
guint
gcab_folder_get_nfiles (GCabFolder *cabfolder);
Get the number of files in this folder
.
“compression” property“compression” GCabCompression
compression.
Flags: Read
Default value: GCAB_COMPRESSION_NONE
“comptype” property “comptype” gint
comptype.
Flags: Read / Write / Construct Only
Allowed values: >= 0
Default value: 0