public bool DirectoryExists(string path) { if (mCache.IsValid("DE", path)) { return((bool)mCache.Get("DE", path)); } var exists = mClient.DirectoryExists(path); mCache.Add("DE", path, exists); return(exists); }