copy

open fun copy(destination: File, flags: FileCopyFlags, cancellable: Cancellable? = null, progressCallback: FileProgressCallback): <Error class: unknown class><Boolean>

Copies the file @source to the location specified by @destination. Can not handle recursive copies of directories.

If the flag %G_FILE_COPY_OVERWRITE is specified an already existing @destination file is overwritten.

If the flag %G_FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlinks will be copied as symlinks, otherwise the target of the

Return

true on success, false otherwise.

Parameters

destination

destination #GFile

flags

set of #GFileCopyFlags

cancellable

optional #GCancellable object, null to ignore

progressCallback

function to callback with progress information, or null if progress information is not needed