SECFileSystem::GetFileSystem
CStringSECFileSystem::GetFileSystem(const CString&PathAndFileName)
Returns the filesystem of the specified filespec.
Defined in: filesys.cpp
Return Value
The filesystem part of the specified filename.
Parameters
PathAndFileName
The name (and possibly path) to a file.
Comments
To return the filesystem name from the given path. The filesystem is all characters up to and including the first occurrence of ":\", ":/", or ":".
Example
CString Path = fs.GetFileSystem("c:\\foo\\bar\\what.txt");
ASSERT(Path == "c:\\");
CString Path = fs.GetFileSystem("c:");
ASSERT(Path == "c:");
CString Path = fs.GetFileSystem("\\foo\\bar\\what.txt");
ASSERT(Path == "");
CString Path = fs.GetFileSystem("\\\\Server\\Drive_C\\Programs\\MyProg.exe");
ASSERT(Path == "\\\\Server\\");
See Also
SECFileSystem GetExtension GetPath GetFileName GetBaseFileName