From owner-freebsd-hackers Sun Mar 30 20:03:41 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA11862 for hackers-outgoing; Sun, 30 Mar 1997 20:03:41 -0800 (PST) Received: from thelab.hub.org (hal-ns3-01.netcom.ca [207.181.94.129]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA11845 for ; Sun, 30 Mar 1997 20:03:36 -0800 (PST) Received: from thelab.hub.org (localhost [127.0.0.1]) by thelab.hub.org (8.8.5/8.8.2) with SMTP id AAA22658 for ; Mon, 31 Mar 1997 00:03:27 -0400 (AST) Date: Mon, 31 Mar 1997 00:03:27 -0400 (AST) From: The Hermit Hacker To: hackers@freebsd.org Subject: ftruncate("directory")... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi... Has anyone written (is it possible?) a utility that can 'truncate' a directory? Essentially, what I'm looking at is something that would open a directory, re-org the entries in it so that only the 'good' entries are at the head of the file, and then truncate it... Not sure if this is actually possible, but am going to play with it here...but if its already been done, all the better... :) Thanks...