public function getFileList($options = array())
{
$options = array_replace(array('from' => null, 'to' => null, 'limit' => null, 'request_limit' => null, 'stored' => $this->defaultFilters['file']['stored'], 'removed' => $this->defaultFilters['file']['removed']), $options);
if (!empty($options['from']) && !empty($options['to'])) {
throw new \Exception('Only one of "from" and "to" arguments is allowed');
}
$options['from'] = self::dateTimeString($options['from']);
$options['to'] = self::dateTimeString($options['to']);
foreach ($this->defaultFilters['file'] as $k => $v) {
if (!is_null($options[$k])) {
$options[$k] = self::booleanString($options[$k]);
}
}
return new \Uploadcare\FileIterator($this, $options);
}