PreviousBtrieve API Guide (v9 SP2 (9.5) revision 1) Next

Get Directory (18)

Chapter contents

The Get Directory operation (B_GET_DIR) returns the current directory for a specified logical disk drive.

Parameters

 
Op Code
Pos Block
Data Buf
Data Buf Len
Key Buffer
Key Number
Sent

       

Returned
       

 

Prerequisites

Your application can issue a Get Directory operation at any time. The Key Buffer should be at least 65 characters long.

Procedure
  1. Set the Operation Code to 18.
  2. Store the logical disk drive number in the Key Number parameter. Specify the drive as 1 for A, 2 for B, and so on. To use the default drive, specify 0.
Result

The transactional interface returns the current directory, terminated by a binary 0, in the Key Buffer.

Positioning

The Get Directory operation has no effect on any file currency information.


Chapter contents
Book contents

Prev topic: Get Direct/Record (23)
Next topic: Get Equal (5)