Function
PackageKitFilenew_from_disk
unstable since: 2.0.0
Declaration [src]
PkFile*
pk_file_new_from_disk (
const gchar* path
)
Description [src]
Creates an entry for a file of an installed package, taking its kind from
the filesystem, as package metadata often does not record it. The kind is
unknown if path does not exist.
Available since: 2.0.0
Parameters
path-
Type:
const gchar*The absolute path of an entry that is on the filesystem.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
Return value
Type: PkFile
A new PkFile.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |