Directory I/O

Your application can use CSL routines to perform the following tasks on SFS and minidisk directories:
  • Determine if a directory exists
  • Open a directory to read it
  • Read directory records
  • Create or erase a directory
  • Close a directory
  • Commit your changes.
See Directory I/O for information on these routines.

To perform I/O on BFS directories, use the OpenExtensions callable services. See the z/VM: OpenExtensions Callable Services Reference. You can also use CMS record file system routines for administration and system-managed storage purposes. See Manipulating BFS Files and Directories Using CMS Record File System CSL Routines.

Your application can use CMS Pipelines stage commands to perform the following tasks on BFS directories:
BFSDIRECTORY
reads from an existing BFS directory file and writes one record for each directory entry.
BFSQUERY
obtains information from OpenExtensions about the current working BFS directory
BFSSTATE
writes records containing status information about byte stream files
BFSXECUTE
reads a record containing a request and sends that request to OpenExtensions services.
Here is a partial list of request tasks:
  • Change a directory
  • Create a new directory entry
  • Create, rename, or remove a directory