def organize_queue(self, start=datetime.now(), interval=60, dryrun=False):
    files = os.listdir(self.queue)
    files.sort()
    for i in range(len(files)):
        stamp = (start + timedelta(minutes=(i * interval)))
        stamp_str = stamp.strftime('%Y-%m-%d %H:%M')
        extension = os.path.splitext(files[i])[1]
        src = os.path.join(self.queue, files[i])
        dst = os.path.join(self.queue, (stamp_str + extension))
        print((((('os.rename(' + src) + ', ') + dst) + ')'))
        if (not dryrun):
            os.rename(src, dst)
def organize_queue(self, start=datetime.now(), interval=60, dryrun=False):
    files = os.listdir(self.queue)
    files.sort()
    for i in range(len(files)):
        stamp = (start + timedelta(minutes=(i * interval)))
        stamp_str = stamp.strftime('%Y-%m-%d %H:%M')
        extension = os.path.splitext(files[i])[1]
        src = os.path.join(self.queue, files[i])
        dst = os.path.join(self.queue, (stamp_str + extension))
        print((((('os.rename(' + src) + ', ') + dst) + ')'))
        if (not dryrun):
            os.rename(src, dst)