Пример #1
0
            public void VisitFile(FileSystemInfo file)
            {
                StorageFileInfo info = _parent.GetShardFileInfo(file);

                if (info != null && info.Type.Value == FileType.CONTENT)
                {
                    result.Add(new EntryImpl(info.ResourceId, (FileInfo)file));
                }
            }
Пример #2
0
            private bool IsExpectedFile(FileSystemInfo file)
            {
                StorageFileInfo info = _parent.GetShardFileInfo(file);

                if (info == null)
                {
                    return(false);
                }

                if (info.Type.Value == FileType.TEMP)
                {
                    return(IsRecentFile(file));
                }

                Preconditions.CheckState(info.Type.Value == FileType.CONTENT);
                return(true);
            }