DirectoryListDoc.tioga
Michael Plass, January 3, 1986 9:07:09 am PST
DirectoryList
CEDAR 6.0 — FOR INTERNAL XEROX USE ONLY
DirectoryList
Michael Plass
© Copyright 1986 Xerox Corporation. All rights reserved.
Abstract: Commands for quickly listing the subdirectory structure of the local disk.
Created by: Michael Plass
Maintained by: Michael Plass <Plass.pa>
Keywords: directory, subdirectory, dir, subdir, files
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
1. Interfaces
DirectoryList
Stateless enumerators for local subdirectories.
2. Commands
Dir [n: number]
Lists the subdirectories on the local disk that have at most n components.
(n defaults to infinity)
SubDir [n: integer]
Lists the subdirectories on the local disk relative to the current working directory.
n is the number of subdirectory components allowed in addition to the those of the current working directory.
If n is negative, does an "uplevel" list.
(n defaults to infinity)
3. Examples
% cd
///Users/Plass.pa/
{0.04 seconds, 190 words}
% dir 0 -- Will list just logical volume info
[]<>
[]<Extra>
{0.01 seconds, 118 words}
% dir 1 -- Just the top-level subdirectories
[]<>
[]<>Christmas>
[]<>Commands>
[]<>dippsy>
[]<>Fonts>
. . .
[]<>Users>
[]<>XI>
[]<Extra>
[]<Extra>11-Jun-85>
[]<Extra>Imager>
[]<Extra>IP>
[]<Extra>tiogatemp>
{0.88 seconds, 9994 words}
% cd []<>Fonts>
///Fonts/
{0.04 seconds, 160 words}
% subdir -- all subdirectories of the current working directory
[]<>Fonts>
[]<>Fonts>FontMetrics>
[]<>fonts>xerox>
[]<>fonts>xerox>CMFonts>
[]<>Fonts>Xerox>PressFonts>
[]<>Fonts>Xerox>TiogaFonts>
{3.98 seconds, 11294 words}
% cd
///Users/Plass.pa/
{0.04 seconds, 190 words}
% subdir -1 -- Subdirectories parallel to the WD
[]<>Users>
[]<>Users>hochschild.pa>
[]<>Users>lamming.pa>
[]<>Users>Plass.pa>
[]<>Users>Thompson.pa>
{0.31 seconds, 2772 words}
% subdir -999 -- like dir 1, but only for the current logical volume
[]<>
[]<>Christmas>
. . .
[]<>XI>
{1.67 seconds, 8044 words}
% dir -- All subdirectories (this will take more time)
[]<>
[]<>Christmas>
. . .
[]<Extra>tiogatemp>
{57.63 seconds, 130110 words}
% dir 2 -- just two levels, should not take as long.
[]<>
. . .
[]<Extra>tiogatemp>
{17.18 seconds, 49918 words}
%