Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107268

Re: How to track files processed

From Peter Otten <__peter__@web.de>
Newsgroups comp.lang.python
Subject Re: How to track files processed
Date 2016-04-18 14:30 +0200
Organization None
Message-ID <mailman.148.1460982654.6324.python-list@python.org> (permalink)
References <59023020-9464-4fb3-8d9d-c42db593f7ea@googlegroups.com> <nf2k1k$kuv$1@ger.gmane.org>

Show all headers | View raw


Sayth Renshaw wrote:

> If you are parsing files in a directory what is the best way to record
> which files were actioned?

What do you do with the result of the parsing process? If you write it to 
another file you can just look if that file already exists. If you write it 
to a database there may be a specific record to look for.

> So that if i re-parse the directory i only parse the new files in the
> directory?

Can you give some context? What are you trying to do? Is your application 
running all the time or would you like to invoke it, process new files and 
then terminate?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to track files processed Sayth Renshaw <flebber.crue@gmail.com> - 2016-04-18 04:02 -0700
  Re: How to track files processed Peter Otten <__peter__@web.de> - 2016-04-18 14:30 +0200
  Re: How to track files processed "Martin A. Brown" <martin@linux-ip.net> - 2016-04-18 10:56 -0700
    Re: How to track files processed Sayth Renshaw <flebber.crue@gmail.com> - 2016-04-18 14:39 -0700

csiph-web