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)); } }
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); }