 If the directory corresponds to an existing floobits workspace, you will instead join the workspace.
 "
   (interactive "DDirectory to share: ")
-  (floobits-load-floorc)
+  (floobits-load-floorc-json)
   (floobits-destroy-connection)
   (lexical-let* ((req (list
-                (cons 'username floobits-username)
-                (cons 'secret floobits-secret)
                 (cons 'perms '((AnonymousUser . ["view_room"])))
                 (cons 'line_endings (floobits-get-line-endings))
                 (cons 'dir_to_share dir-to-share)))

      (progn
        (floobits-destroy-connection)
        (lexical-let* ((req (list
          (cons 'username floobits-username)
          (cons 'workspace workspace)
          (cons 'secret floobits-secret)
          (cons 'line_endings (floobits-get-line-endings))
          (cons 'workspace_owner owner)))
          (func (lambda () (floobits-send-to-agent req 'join_workspace))))

If the directory corresponds to an existing floobits workspace, you will instead join the workspace.
"
  (interactive "DDirectory to share: ")
  (floobits-load-floorc-json)
  (floobits-destroy-connection)
  (lexical-let* (
      (req (list
        (cons 'perms '((AnonymousUser . [])))
        (cons 'line_endings (floobits-get-line-endings))
        (cons 'dir_to_share dir-to-share)))
