File.makeSymbolicLink

Creates a symbolic link named file which contains the string symlink_value. If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error G_IO_ERROR_CANCELLED will be returned.

class File
int
makeSymbolicLink

Parameters

symlinkValue string

a string with the path for the target of the new symlink

cancellable Cancellable

optional GCancellable object, NULL to ignore. [allow-none]

Return Value

Type: int

TRUE on the creation of a new symlink, FALSE otherwise.

Throws

GException on failure.

Meta