X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=nina;h=a628b2c4e3bf25fe70faa5764c36f656322eaea6;hb=dd0ee5b67c650470139ffa8a50ae6b83a92ca76a;hp=719221229ef31dab921e6deb8f1657fee4c67b55;hpb=9e78deadeefb78533360179077669f763f0f483c;p=dak.git diff --git a/nina b/nina index 71922122..a628b2c4 100755 --- a/nina +++ b/nina @@ -1,7 +1,7 @@ #!/usr/bin/env python -# Copyright (C) 2004 James Troup -# $Id: nina,v 1.1 2004-11-27 19:25:59 troup Exp $ +# Copyright (C) 2004, 2005 James Troup +# $Id: nina,v 1.2 2005-11-15 09:50:32 ajt Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -31,8 +31,8 @@ def main(): files = glob.glob("%s/*" % (Cnf["Dir::Queue::Done"])); for filename in files: if os.path.isfile(filename): - ctime = time.gmtime(os.stat(filename)[stat.ST_CTIME]); - dirname = time.strftime("%Y/%m/%d", ctime); + mtime = time.gmtime(os.stat(filename)[stat.ST_MTIME]); + dirname = time.strftime("%Y/%m/%d", mtime); if not os.path.exists(dirname): print "Creating: %s" % (dirname); os.makedirs(dirname);