FilePathGetDirectoryName Method
Gets the directory information from the specified file path.
Namespace: Gemstone.IOAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.170 -- Release Build+d52ae7197b8b2924ea9e1e530d25301718816611
Public Shared Function GetDirectoryName (
filePath As String
) As String
Gemstone.IO.FilePath.GetDirectoryName = function(filePath);
- filePath String
- The file path from which the directory information is to be obtained.
StringDirectory information.
This differs from
GetDirectoryName(String) in that it will see if last name in path is
a directory and, if it exists, will properly treat that part of path as a directory. The .NET path
function always assumes last entry is a file name if path is not suffixed with a slash. For example:
Path.GetDirectoryName(@"C:\Music") will return "C:\", however,
FilePath.GetDirectoryName(@"C:\Music") will return "C:\Music\", so long as Music directory exists.