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

CurrentDir

Make a directory lock the current directory

Declaration

Source position: amigados.pas line 1601

function CurrentDir(

  lock: LongInt

):LongInt;

Arguments

lock

  

Lock to directory should become new current directory

Function result

Pointer to a lock

Description

CurrentDir() causes a directory associated with a lock to be made the current directory. The old current directory lock is returned.

A value of nil is a valid result here, this nil lock represents the root of file system that you booted from.

Any call that has to DosOpen() or Lock() files (etc.) requires that the current directory be a valid lock or nil.

See also

Lock

  

Lock a directory or file

UnLock

  

Unlock a directory or file

DosOpen

  

Open a file for input or output

DupLock

  

Duplicate a lock


Documentation generated on: 2021-07-30