Logiweb(TM)

7.16.12 fileDir, fileMkdir, and fileRmdir

Prev Up Next Page 283 of 800 Search internet


A fileDir request returns the contents of a directory p:

eager define fileDir ( p ) as lgcio ( FileDir :: p :: EOS ) end define

The reply has form

<< << r ,, i >> ,, p >>

where p is the contents of the directory expressed as a singleton list. Each entry in p is zero terminated. The entries may or may not include '.' and '..'.

A fileMkdir and fileRmdir request creates and deletes a directory, respectively:

eager define fileMkdir ( p ) as lgcio ( FileMkdir :: p :: EOS ) end define

eager define fileRmdir ( p ) as lgcio ( FileRmdir :: p :: EOS ) end define

fileRmdir only removes empty directories. Given path abc/def/ghi, fileMkdir creates abc/ and abc/def/. Given path abc/def/ghi/ it creates abc/, abc/def/, and abc/def/ghi/.

The reply has form

<< << r ,, i >> ,, p >>

where p is the empty list.

Prev Up Next Page 283 of 800 Search logiweb.eu

Copyright © 2010 Klaus Grue, GRD-2010-01-05