From owner-freebsd-questions@FreeBSD.ORG Sat Apr 22 03:12:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B213C16A402 for ; Sat, 22 Apr 2006 03:12:05 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4331943D46 for ; Sat, 22 Apr 2006 03:12:05 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k3M3C43f006716; Fri, 21 Apr 2006 22:12:04 -0500 (CDT) (envelope-from dan) Date: Fri, 21 Apr 2006 22:12:04 -0500 From: Dan Nelson To: Gary Kline Message-ID: <20060422031204.GD73063@dan.emsphone.com> References: <20060421234246.GA42445@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060421234246.GA42445@thought.org> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: FreeBSD Mailing List Subject: Re: getfiletime() and setfiletime() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Apr 2006 03:12:05 -0000 In the last episode (Apr 21), Gary Kline said: > With all the billions-and-billions of lines of C hacked by > people reading this, do any of you have the functions that > would get and save-away the stat mtime, then be able to set the > original mtime of the file to what it was? > > I am getting back to working on a programm that cleans away > embedded html, jpg, and other non ASCII (or 8859-1) and leaves > just-plain-text. This from my ~/Mail/* files. Ideally, I > would like to set the timestamp of each file to what it was. So > before I re-invent wheels, I thought I'd ask the list. You can use mtree to do this. -- Dan Nelson dnelson@allantgroup.com