Exemple #1
0
        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));
        }
Exemple #2
0
 public void UpdateShareState(FileModel fileModel, EDiscoveryShareState state)
 {
     fileModel.Write(MetadataKeyConstants.E_DISCOVERY_SHARE_STATE_META_KEY, state.ToString());
 }