get_contracts_for_files


Description:

public static List<Contract> get_contracts_for_files (File[] files) throws Error

Returns actions (contracts) applicable to all given files.

Only the contracts that support all of the files are returned.
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:

files

Array of existing files.

Returns:

Gee.List of contracts applicable to any of the given files.