diff --git a/Wreck/IO/Task/AnalyzeTask.cs b/Wreck/IO/Task/AnalyzeTask.cs index 9ee0cfb..59ec3ea 100644 --- a/Wreck/IO/Task/AnalyzeTask.cs +++ b/Wreck/IO/Task/AnalyzeTask.cs @@ -191,7 +191,7 @@ private IDictionary Analyze(FileSystemInfo path) readerFactory.DirectoryReader.Add(parent, suggestions); - LOG.InfoFormat("{0} C: {1}, M: {2}, A: {3} {4}", + LOG.DebugFormat("{0} C: {1}, M: {2}, A: {3} {4}", !FSUtils.IsDirectory(path) && !FSUtils.IsReparsePoint(path)? "": "[D]", suggestions[CorrectionEnum.CREATION], suggestions[CorrectionEnum.MODIFIED], diff --git a/Wreck/IO/Writer/BasicFileAttributesWriter.cs b/Wreck/IO/Writer/BasicFileAttributesWriter.cs index 4abf0fb..22b7f4e 100644 --- a/Wreck/IO/Writer/BasicFileAttributesWriter.cs +++ b/Wreck/IO/Writer/BasicFileAttributesWriter.cs @@ -39,20 +39,34 @@ public override void Write( file.LastAccessTime, values[CorrectionEnum.ACCESSED]); + bool changed = false; + if(creation.HasValue) + { file.CreationTime = creation.Value; + changed = true; + } if(modified.HasValue) + { file.LastWriteTime = modified.Value; + changed = true; + } if(accessed.HasValue) + { file.LastAccessTime = accessed.Value; + changed = true; + } - LOG.InfoFormat("Updated {0}: {1}, {2}, {3}", - file.FullName, - (creation.HasValue)? creation.Value.ToString() : "-", - (modified.HasValue)? modified.Value.ToString() : "-", - (accessed.HasValue)? accessed.Value.ToString() : "-"); + if(changed) + { + LOG.InfoFormat("Updated {0}: {1}, {2}, {3}", + file.FullName, + (creation.HasValue)? creation.Value.ToString() : "-", + (modified.HasValue)? modified.Value.ToString() : "-", + (accessed.HasValue)? accessed.Value.ToString() : "-"); + } } } } diff --git a/WreckCli/Controller/CliController.cs b/WreckCli/Controller/CliController.cs index f071cda..a74c77e 100644 --- a/WreckCli/Controller/CliController.cs +++ b/WreckCli/Controller/CliController.cs @@ -116,18 +116,18 @@ public void PropertyChange(PropertyChangeEvent evt) else if (R.Strings.PropertyProgress.Equals(evt.PropertyName)) { int progress = (int)evt.NewValue; - LOG.InfoFormat("{0}%", progress); + LOG.DebugFormat("{0}%", progress); } else if (R.Strings.PropertyVisits.Equals(evt.PropertyName)) { FileVisit visit = (FileVisit) evt.NewValue; - LOG.InfoFormat("{0} - {1}%", visit.File.FullName, visit.Progress); + LOG.DebugFormat("{0} - {1}%", visit.File.FullName, visit.Progress); } else if(R.Strings.PropertyBean.Equals(evt.PropertyName)) { FileBean update = (FileBean) evt.NewValue; - LOG.InfoFormat("{0}, {1}, {2}, {3}, {4}", + LOG.DebugFormat("{0}, {1}, {2}, {3}, {4}", update.Creation.ToString(), update.Modified.ToString(), update.Metadata.ToString(), diff --git a/WreckCli/log4net.xml b/WreckCli/log4net.xml index d83a931..e5d7169 100644 --- a/WreckCli/log4net.xml +++ b/WreckCli/log4net.xml @@ -29,7 +29,7 @@ - + @@ -37,6 +37,6 @@ - + \ No newline at end of file