Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#aros]

MakeLink

Creates a filesystem link

Declaration

Source position: amigados.pas line 2273

function MakeLink(

  const Name: PChar;

  Dest: Pointer;

  Soft: LongInt

):LongBool;

Arguments

Name

  

The name of the link to create

Dest

  

If soft is True this must be a filename; if it is False a lock pointing to the file to be hard-linked must be provided

Soft

  

True, if a soft link is to be created, False for a hard link

Function result

DOSTRUE or DOSFALSE. On error, IoErr() will contain more information.

Description

MakeLink() will create a link between two files or directories. A link is a filesystem object that refers to another file.

A soft link refers to another file or directory by name, and is resolved by the filesystem and the caller. Soft links are not restricted to the same volume and the target does not have to exist.

A hard link refers to another file by the location on a disk, and is resolved by the filesystem. Hard links are restricted to files or directories on the same volume.


Documentation generated on: 2021-07-30