public string GetDirectoryName(string path) { if (_sharpCifsFileSystem.IsEnabledForPath(path)) { return(_sharpCifsFileSystem.GetDirectoryName(path)); } return(Path.GetDirectoryName(path)); }