Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebUtils.GetVirtualDirectory Method

Returns only the directory portion of a virtual path

[Visual Basic]
Public Shared Sub GetVirtualDirectory( _
   ByVal virtualPath As String _
)
[C#]
public static string GetVirtualDirectory(
   string virtualPath
);

Remarks

The returned path is guaranteed to always have a leading and a trailing slash.
If a path does not end with a file-extension it is assumed to be a directory

See Also

WebUtils Class | Spring.Util Namespace