getfiletime() and setfiletime()

Dan Nelson dnelson at allantgroup.com
Sat Apr 22 03:12:05 UTC 2006


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 at allantgroup.com


More information about the freebsd-questions mailing list