add_file_sync


Description:

public string add_file_sync (string file) throws Error

Add the file contents to the GPasteDaemon

A relative file is taken from the caller's working directory, and fails with the g_file_error getcwd () reports when that cannot be named -- one removed meanwhile. A path that is not valid UTF-8, which a D-Bus string cannot carry, fails with g_io_error_invalid_data before anything is sent.

Parameters:

this

a Client instance

file

the file to add

Returns:

the uuid of the item that was added