[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)

CurrentDir

Make a directory lock the current directory

Declaration

Source position: amigados.pas line 2265

function CurrentDir(

  Lock: BPTR

):BPTR;

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: 2017-01-10