6 $ deltree: subroutine ! P1 is a name of a directory
7 $ on control_y then goto dt_STOP
8 $ on warning then goto dt_exit
9 $ _dt_def = f$trnlnm("SYS$DISK")+f$directory()
10 $ if f$parse(p1) .eqs. "" then exit
11 $ set default 'f$parse(p1,,,"DEVICE")''f$parse(p1,,,"DIRECTORY")'
12 $ p1 = f$parse(p1,,,"NAME") + f$parse(p1,,,"TYPE")
13 $ _fp = f$parse(".DIR",p1)
16 $ if _f .eqs. "" then goto dt_loopend
17 $ call deltree [.'f$parse(_f,,,"NAME")']*.*
20 $ _fp = f$parse(p1,".;*")
21 $ if f$search(_fp) .eqs. "" then goto dt_exit
23 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) '_fp'
27 $ set default '_dt_def'
30 $ set default '_dt_def'