From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 19:32:00 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62483106564A for ; Thu, 1 Jul 2010 19:32:00 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 1CCF08FC14 for ; Thu, 1 Jul 2010 19:31:59 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id o61JVwwM084184; Thu, 1 Jul 2010 13:31:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id o61JVwTN084181; Thu, 1 Jul 2010 13:31:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 1 Jul 2010 13:31:58 -0600 (MDT) From: Warren Block To: Steve Franks In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.5 (wonkity.com [127.0.0.1]); Thu, 01 Jul 2010 13:31:59 -0600 (MDT) Cc: freebsd-hackers Subject: Re: thoughts on sorting files into sub-folders by access date? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2010 19:32:00 -0000 On Thu, 1 Jul 2010, Steve Franks wrote: > My high-end point&shoot camera likes to glob all my photos in a single > folder, and it's glutting up my drive, and makes finding a specific > trip unpleasant, with no good place for metadata. My SLR sorts them > into folders by date, which I love. > > I can't find anything close googling, so I d/l a bunch of perl > examples. Before I figure this out in python (I'm a hardware > developer by trade, so that seems most sensible [libc doesn't seem to > have any os-agnostic way of playing with file times, no?])... > > I thought I'd check if there's some trivially simple way of doing this > with bash & find first. The EXIF data is a better source for the date. graphics/py-exif, for example.