public async Task <bool> IsFolderWhitelisted(IAbsoluteDirectoryPath path) { if (_folders.Any(path.Equals)) { return(true); } var ctx = _locator.GetContentLinkContext(); return((await ctx.GetFolderLink().ConfigureAwait(false)).Infos.Any(x => path.Equals(x.Path))); }