| delorie.com/archives/browse.cgi | search |
| From: | "Ben Davis" <ben AT vjpoole DOT freeserve DOT co DOT uk> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Best way to implement DELTREE |
| Date: | Wed, 5 Apr 2000 03:46:10 +0100 |
| Organization: | Customer of Planet Online |
| Lines: | 16 |
| Message-ID: | <8ce9g4$nth$1@newsg4.svr.pol.co.uk> |
| References: | <8ccfq7$v1q$1 AT newsg1 DOT svr DOT pol DOT co DOT uk> <38EA1EA7 DOT 6A8E81BE AT is DOT elta DOT co DOT il> |
| NNTP-Posting-Host: | modem-112.barium.dialup.pol.co.uk |
| X-Trace: | newsg4.svr.pol.co.uk 954902852 24497 62.136.47.112 (5 Apr 2000 02:47:32 GMT) |
| NNTP-Posting-Date: | 5 Apr 2000 02:47:32 GMT |
| X-Complaints-To: | abuse AT theplanet DOT net |
| X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Eli Zaretskii wrote in message <38EA1EA7 DOT 6A8E81BE AT is DOT elta DOT co DOT il>... >You can use the directory-traversal functions provided in the library. The >function `ftw' is portable to Unix systems; the function `__file_tree_walk' >is DJGPP-specific, but is usually much faster. Look them up in the library >docs. I've considered that, but they both check directories before they check the subdirectories. If I'm deleting, I need to empty a directory before I remove it. By the way, I don't think 'siblings' is the right word, as used in the docs and the source; it normally means brothers or sisters. Therefore it is paradoxical to say, "This function always visits a directory before any of its siblings," as being a sibling is mutual! (Doesn't matter really.)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |