[
https://issues.apache.org/jira/browse/SLING-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206904#comment-13206904
]
Alexander Klimetschek commented on SLING-2364:
----------------------------------------------
FWIW: The org.apache.jackrabbit.Text helper in jackrabbit-jcr-commons already
provides getRelativeParent() (and one to ignore trailing slashes) and
getAbsoluteParent().
http://jackrabbit.apache.org/api/2.2/org/apache/jackrabbit/util/Text.html
> ResourceUtil should provide a method to get the parent on an arbitrary level
> ----------------------------------------------------------------------------
>
> Key: SLING-2364
> URL: https://issues.apache.org/jira/browse/SLING-2364
> Project: Sling
> Issue Type: Improvement
> Components: API
> Affects Versions: API 2.2.2
> Reporter: Konrad Windszus
> Attachments: getParent.patch
>
>
> Please provide the method "String getAbsoluteParent(String path, int level)"
> to return the parent path on the given level.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira