X-no-Archive:yes
You can treat the directory name like a file (Hmmm... where have we heard
that before?), and test for existence. In fact, because I tested, I did not
use CONTINUE where one might otherwise have wanted to do so. IOW, I wanted
to just abort on unexpected errors. I used to archive ZIP files to groups of
the TLA for months, and within those, a two digit day number:
! IF NOT ![FINFO("../!ZIPGROUP","EXISTS")]
!#This group should exist, but testing prevents errs
! NEWGROUP !ZIPGROUP;HOMEVS=CGI;CAP=IA
! NEWGROUP !ZIPGROUP;ONVS=CGI
! ENDIF
! IF NOT ![FINFO("../!ZIPGROUP/!ZIPDIR","EXISTS")]
!#This dir should NOT exist, but testing prevents errs
! MKDIR ../!ZIPGROUP/!ZIPDIR
! ENDIF
! SHOWVAR ZIP@
! CHDIR ../!ZIPGROUP/!ZIPDIR
I really should not have trusted the path for MKDIR.
Greg Stigers
http://www.cgiusa.com
-----Original Message-----
From: Mark Boyd [mailto:[log in to unmask]]
Sent: Thursday, June 28, 2001 3:31 PM
To: [log in to unmask]
Subject: MPE/posix question.
I need to build one or more directories on the fly; is there a way to tell
mpe to build a posix directory if it doesn't exist?
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|