public Folder getFolder(long folderId, EnumSet<SourceInclusion> includes) throws SmartsheetException {
        String path = "folders/" + folderId;
        HashMap<String, Object> parameters = new HashMap<String, Object>();
        parameters.put("include", QueryUtil.generateCommaSeparatedList(includes));
        path += QueryUtil.generateUrl(null, parameters);

        return this.getResource(path, Folder.class);
    }
public Folder getFolder ( long folderId , EnumSet < SourceInclusion > includes ) throws SmartsheetException { String path = "folders/" + folderId ; HashMap < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "include" , QueryUtil . generateCommaSeparatedList ( includes ) ) ; path += QueryUtil . generateUrl ( null , parameters ) ; return this . getResource ( path , Folder . class ) ; }
Get a folder.

It mirrors to the following Smartsheet REST API method: GET /folder/{id}

Exceptions:
InvalidRequestException : if there is any problem with the REST API request
AuthorizationException : if there is any problem with the REST API authorization(access token)
ResourceNotFoundException : if the resource can not be found
ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
SmartsheetRestException : if there is any other REST API related error occurred during the operation
SmartsheetException : if there is any other error occurred during the operation

@param folderId the folder id
@param includes the include parameters
@return the folder (note that if there is no such resource, this method will throw ResourceNotFoundException
rather than returning null)
@throws SmartsheetException the smartsheet exception