code: public void setSiteRoot(String root) {
  
          // site roots must never end with a "/"
          if (root.endsWith("/")) {
              m_siteRoot = root.substring(0, root.length() - 1);
          } else {
              m_siteRoot = root;
          }
      }
docs: Sets the current root directory in the virtual file system.<p>
  
  @param root the name of the new root directory