AlgorithmiaDirectoryIterator-class {algorithmia}R Documentation

DirectoryIterator object to iterate over child files or directories of a parent directory. To create one, call: 'dataDirectory$dirs()' or 'dataDirectory$files()'

Description

DirectoryIterator object to iterate over child files or directories of a parent directory. To create one, call: 'dataDirectory$dirs()' or 'dataDirectory$files()'

Fields

dataDirectory

Parent directory whose children we are iterating over.

typeFilter

Either DATA_OBJECT_TYPE_FILE or DATA_OBJECT_TYPE_DIRECTORY.

marker

Page marker while iterating over a directory with lots of entries.

first

Whether we have asked the server for anything for the first time.

index

The current position of the directoryEntries list.

directoryEntries

The list of children entries we are iterating over.

Methods

getNext()

Returns the next element or stops if you have asked for a next element that does not exist.

hasNext()

Returns TRUE if there are any more elements. FALSE otherwise.


[Package algorithmia version 0.3.0 Index]