Category : Modula II Source Code
Archive   : FLXCPY10.ZIP
Filename : DIRINFO.DEF

 
Output of file : DIRINFO.DEF contained in archive : FLXCPY10.ZIP
DEFINITION MODULE DirInfo;
(* Get file directory information. Base on the the GetNames routine in
the GetFiles library module but returns more complete information. *)
(* Created 9/9/88 by Dave Lemire *)

FROM MSDOS IMPORT Attributes, AttributesSet;

TYPE
FileName=ARRAY[0..13] OF CHAR;
DirEntry = RECORD
Name : FileName;
Attrib : AttributesSet;
fdate,
ftime : CARDINAL;
Size : LONGCARD;
END; (* DirEntry RECORD *)

VAR
SearchAttributes : AttributesSet;

(* Get files names that match the string in Pattern. Pattern can contain
a full path name, and file wild cards. All entries that match pattern
are returned in the array Entries, using the DirEntry format that provides
very complete file information. The variable count return the number
of files found. *)
PROCEDURE GetDirectory( Pattern : ARRAY OF CHAR;
VAR Entries : ARRAY OF DirEntry;
VAR Count : CARDINAL);

END DirInfo.



  3 Responses to “Category : Modula II Source Code
Archive   : FLXCPY10.ZIP
Filename : DIRINFO.DEF

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/