code: public function exists($file)
      {
          if (false === $file instanceof File) {
              $file = $this->factory->create($file);
          }
  
          return $this->adapter->exists($file->getName());
      }
docs: {@inheritdoc}