private async Task <IEnumerable <FileModel> > FilesOfStateInPath(EDiscoveryShareState state, PathIdentifier pathIdentifier) { var folder = await connection.Folder.GetAsync(pathIdentifier, new List <PopulationDirective> { new PopulationDirective { Name = nameof(FolderModel.Files) } }); return(folder.Files.Rows .Where(f => f.MetaPathIdentifierRead().IsChildOf(pathIdentifier)) .Where(f => f.ShareState() == state)); }
public void UpdateShareState(FileModel fileModel, EDiscoveryShareState state) { fileModel.Write(MetadataKeyConstants.E_DISCOVERY_SHARE_STATE_META_KEY, state.ToString()); }