🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.netware.misc
Article #598

How to delete a directory quickly?

#598
From: A. Grant
Date: Fri, 18 Aug 1995 00:00
14 lines
1177 bytes
I am trying to delete a directory (that's the file type, not the
NDS type!) via the NetWare API.  The 'delete directory' call won't
let me delete a directory that isn't empty.

What am I doing at the moment is scanning for subdirectories, 
deleting those recursively, then deleting the files in the directory,
which I can do in one go using wildcards -- except that it may fail
because some files are flagged non-deletable, then I have to scan
all the files individually and change their flags.

Is there a better way?  How can I get the tree deleted in a minimum
number of NCP interactions that doesn't involve all that network
traffic to scan the tree?  Is there a way to handle the read-only
flags problem?
Technical Details
Message-ID: <ag129.2260.000C33B2@cam.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fe659,9e54e13477de5037,start
X-Google-Attributes: gidfe659,public
X-Google-Thread: f8bf7,9e54e13477de5037,start
X-Google-Attributes: gidf8bf7,public
From: ag129@cam.ac.uk (A. Grant)
Subject: How to delete a directory quickly?
Date: 1995/08/18
Message-ID: <ag129.2260.000C33B2@cam.ac.uk>
X-Deja-AN: 108356353
organization: Systems
newsgroups: comp.os.netware.misc,bit.listserv.novell