Parsed: 108861

  public function exists( $path ) {
    $list = $this->ftp->nlist( $path );

    if ( empty( $list ) && $this->WP_Filesystem_ftpsockets::is_dir( $path ) ) {
      return true; // File is an empty directory.
    }

    return ! empty( $list ); // Empty list = no file, so invert.
    // Return $this->ftp->is_exists($file); has issues with ABOR+426 responses on the ncFTPd server.
  }