get_contracts_for_file


Description:

public static List<Contract> get_contracts_for_file (File file) throws Error

Returns actions (contracts) applicable to the given file.

Errors occurring in GLib.File.query_info method while looking up the file (e.g. if the file is deleted) are forwarded to the caller.

Parameters:

file

An existing file.

Returns:

Gee.List of contracts applicable to the given file.