OSDir
Module for operating on OS directories
Types
Dir* = RECORD
dir : xlibOS.X2C_Dir;
END;
Procedures
Dir.Open
PROCEDURE (VAR d : Dir) Open*(name- : ARRAY OF CHAR);
Dir.Close
Close directory listing
PROCEDURE (VAR d : Dir) Close*();
Dir.Next
Advance to next item in directory listing
PROCEDURE (VAR d : Dir) Next*();
Dir.Name
Entry name
PROCEDURE (VAR d : Dir) Name*(VAR name : String.STRING);
Dir.IsDone
End of directory listing
PROCEDURE (VAR d : Dir) IsDone*() : BOOLEAN;
Dir.IsFile
Entry is file?
PROCEDURE (VAR d : Dir) IsFile*() : BOOLEAN;
Current
Get current directory name
PROCEDURE Current*(VAR name : String.STRING);
SetCurrent
Set current directory name
PROCEDURE SetCurrent*(name- : ARRAY OF CHAR): BOOLEAN;
Create
Try to create directory. Return TRUE on success
PROCEDURE Create*(filename-: ARRAY OF CHAR): BOOLEAN;
Delete
Try to delete directory. Return TRUE on success
PROCEDURE Delete*(filename-: ARRAY OF CHAR): BOOLEAN;