delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/04/14:32:49

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Best way to implement DELTREE
Date: Tue, 04 Apr 2000 18:56:07 +0200
Organization: NetVision Israel
Lines: 9
Message-ID: <38EA1EA7.6A8E81BE@is.elta.co.il>
References: <8ccfq7$v1q$1 AT newsg1 DOT svr DOT pol DOT co DOT uk>
NNTP-Posting-Host: ras1-p103.rvt.netvision.net.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 954867278 28803 62.0.172.105 (4 Apr 2000 16:54:38 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 4 Apr 2000 16:54:38 GMT
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,ru,hebrew
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ben Davis wrote:
> 
> Is there a function in libc which will do a DELTREE for me for my uninstall
> program? If not, what is the best way to implement one?

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019