Base class and common code for dirq package.
It is used internally by dirq modules and should not be used elsewhere.
Konstantin Skaburskas <konstantin.skaburskas@gmail.com>
ASL 2.0
Copyright (C) CERN 2011-2013
QueueBase
Copy/clone the object. Return copy of the object.
Note:
Return the first element in the queue and cache information about the next ones.
Return iterator over element names.
Return name of the next element in the queue, only using cached information. When queue is empty, depending on the iterator protocol - return empty string or raise StopIteration.
Touch an element directory to indicate that it is still being used.
NOTE: this may not work on OSes with directories implemented not as files (eg. Windows). See doc for os.utime().