public SetAttributesWorker(IEnumerable<IVirtualItem> items, bool includeSubfolders, FileAttributes setAttributes, FileAttributes resetAttributes, DateTime? creationTime, DateTime? lastAccessTime, DateTime? lastWriteTime) { if (!((((setAttributes != 0) || (resetAttributes != 0)) || (creationTime.HasValue || lastAccessTime.HasValue)) || lastWriteTime.HasValue)) { throw new ArgumentException(); } this.FContent = new AggregatedVirtualFolder(items); this.FSearchOptions = includeSubfolders ? SearchFolderOptions.ProcessSubfolders : ((SearchFolderOptions) 0); this.FSetAttributes = setAttributes; this.FResetAttributes = resetAttributes; this.FCreationTime = creationTime; this.FLastAccessTime = lastAccessTime; this.FLastWriteTime = lastWriteTime; }
private string Write195_SearchFolderOptions(SearchFolderOptions v) { switch (v) { case SearchFolderOptions.AsyncSearch: return "AsyncSearch"; case SearchFolderOptions.AutoAsyncSearch: return "AutoAsyncSearch"; case SearchFolderOptions.ExpandAggregatedRoot: return "ExpandAggregatedRoot"; case SearchFolderOptions.ProcessSubfolders: return "ProcessSubfolders"; case SearchFolderOptions.ProcessArchives: return "ProcessArchives"; case SearchFolderOptions.SkipUnmatchedSubfolders: return "SkipUnmatchedSubfolders"; case SearchFolderOptions.SkipReparsePoints: return "SkipReparsePoints"; case SearchFolderOptions.DetectChanges: return "DetectChanges"; } return XmlSerializationWriter.FromEnum((long) v, new string[] { "ProcessSubfolders", "ProcessArchives", "SkipUnmatchedSubfolders", "SkipReparsePoints", "DetectChanges", "AsyncSearch", "AutoAsyncSearch", "ExpandAggregatedRoot" }, new long[] { 1L, 2L, 4L, 8L, 0x10L, 0x20L, 0x40L, 0x80L }, "Nomad.FileSystem.Virtual.SearchFolderOptions"); }