Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

MakeLink

Creates a filesystem link

Declaration

Source position: amigados.pas line 1941

function MakeLink(

  name: PChar;

  dest: LongInt;

  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