code: protected function transformFiles($files)
      {
          $result = [];
  
          foreach ($files as $file) {
              $result[] = [
                  'type' => $file['content_type'] === 'application/directory' ? 'dir' : 'file',
                  'path' => $file['name'],
                  'size' => intval($file['bytes']),
                  'timestamp' => strtotime($file['last_modified']),
                  'mimetype' => $file['content_type'],
              ];
          }
  
          return $result;
      }
docs: Transforms internal files array to Flysystem-compatible one.
  
  @param array $files Original Selectel's files array.
  
  @return array