function getFolds(path) {
        var context = getViewStateContext();
        var folds = PreferencesManager.getViewState(FOLDS_PREF_KEY, context);
        return inflate(folds[path]);
    }
Gets the line folds saved for the specified path.
@param {string} path the document path
@return {Object} the line folds for the document at the specified path