FileSaver.with_target


Description:

[ CCode ( has_construct_function = false ) ]
public FileSaver.with_target (Buffer buffer, File file, File target_location)

Creates a new FileSaver object with a target location.

When the file saving is finished successfully, target_location is set to the file's [property@File:location] property. If an error occurs, the previous valid location is still available in [class@File].

This constructor is suitable for a "save as" operation, or for saving a new buffer for the first time.

Parameters:

buffer

the Buffer to save.

file

the File.

target_location

the File where to save the buffer to.

Returns:

a new FileSaver object.




2022 vala-language.org