save_to_fd


Description:

[ Version ( since = "21.12.0" ) ]
public bool save_to_fd (int fd) throws Error

Saves this to a file referred to by fd.

If error is set, false will be returned. Possible errors include those in the FileError domain and whatever the save function generates. Note that this function takes ownership of fd; you must not operate on it again, nor close it.

Parameters:

this

A Attachment.

fd

a valid file descriptor open for writing

Returns:

true, if the file successfully saved