scistag.filestag.file_source.FileSourceIterator

class FileSourceIterator(source)[source]

Bases: object

Iterator providing the data from a file source

Parameters

source (FileSource) – The file source to provide the data for

Methods

Attributes

__dict__

__doc__

__module__

__weakref__

list of weak references to the object (if defined)

source

The FileSource which created this iterator

processing_data

Additional, user defined parameters you can store here to make them accessible to your callback for example

file_index

The index of all found files (including skipped ones)

processed_file_count

The index of all really processed files

current_file_size

The size of the file which is currently being handled.

current_file_size

The size of the file which is currently being handled. Not available for all file sources. (0 in that case)

file_index

The index of all found files (including skipped ones)

processed_file_count

The index of all really processed files

processing_data

Additional, user defined parameters you can store here to make them accessible to your callback for example

source

The FileSource which created this iterator