## Strip the filename off the path. We don't seem to have access to PathUtilities in here. #set ( $editingPath = $context.getRequestParameter( 'path' ) ) #if( $editingPath.indexOf(".") > -1 ) #set ( $slashPos = $editingPath.lastIndexOf( '/' )) #if ( $slashPos != -1 ) #set( $basePath = $editingPath.substring( 0, $slashPos) ) #else #set( $basePath = "" ) #end #else #set( $basePath = "$!{editingPath}" ) #end #if (!$basePath.endsWith("/")) #set( $basePath = "$basePath/" ) #end