Directory *OpenDirectoryItem( Item openFileItem )
This function opens a directory. It allocates a new directory structure, opens the directory, and prepares for a traversal of the contents of the directory. Unlike OpenDirectoryPath()
, you specify the file for the directory by its item number rather than by its pathname.
Folio call implemented in file folio V20.
When you are done scanning the directory and call CloseDirectory()
, the item you gave to OpenDirectoryItem()
will automatically be closed for you. In essence, when you call OpenDirectoryItem()
, you are giving away the File item to the file folio, which will dispose of it when the directory is closed.
directoryfunctions.h, filesystem.lib
OpenDiskFile
(), OpenDiskFileInDir(), OpenDirectoryPath(), CloseDirectory()