File gdl2.icn

Summary

###########################################################################

	File:     gdl2.icn

	Subject:  Procedures to get directory lists

	Authors:  Richard L. Goerwitz and Charles Shartsis

	Date:	  August 14, 1995

###########################################################################

   This file is in the public domain.

###########################################################################

   Version:  1.3+

###########################################################################

  Gdl returns a list containing everything in a directory (whose name
  must be passed as an argument to gdl).  Nothing fancy.  I use this file
  as a template, modifying the procedures according to the needs of the
  program in which they are used.

 NOTE: MSDOS results are all in lower case

 Modifications:
 1) Fixed MSDOS routines.
 2) Added gdlrec which does same thing as gdl except it recursively descends
   through subdirectories.  May choose which Unix utility to use by passing
   in method parameter.  See below.

###########################################################################

  Requires:  UNIX or MS-DOS

###########################################################################
Procedures:
gdl, gdlrec, get_dos_tempname, msdos_get_dir, msdos_get_dir_rec, set_getdir_by_os, set_getdir_rec_by_os, unix_get_dir, unix_get_dir_rec, unix_get_dir_rec2

This file is part of the (main) package.

Source code.

Details
Procedures:

gdl(dir)


gdlrec(dir, Method)


get_dos_tempname(dir)


msdos_get_dir(dir)


msdos_get_dir_rec(dir, level)


set_getdir_by_os()


set_getdir_rec_by_os(Method)


unix_get_dir(dir)


unix_get_dir_rec(dir, level)


unix_get_dir_rec2(dir)

 This works too.
 This routine is faster but depends on the Unix "find" program.
 Don't know if all Unixes have this.



This page produced by UniDoc on 2021/04/15 @ 23:59:54.