public function toArray()
{
return ['name' => $this->getName() . ($this->getName() !== '/' && $this->getType() == FileInfo::DIR ? '/' : ''), 'path' => $this->getPath(), 'type' => $this->getType(), 'size' => $this->getSize(), 'extension' => $this->getExtension(), 'mimeType' => $this->getMimeType(), 'createdTime' => $this->getCreatedTime(), 'modifiedTime' => $this->getModifiedTime()];
}