Skip to content

Commit 7967cf2

Browse files
committed
hack to tolerate IOException when executing SetXxxTime
1 parent aa3a470 commit 7967cf2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Libraries/Core/Sources/ArchiveEntityExtension.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ public static void SetAttributes(this ArchiveEntity src, string root)
7171
var path = Io.Combine(root, src.FullName);
7272
if (!Io.Exists(path)) return;
7373

74-
SetCreationTime(src, path);
75-
SetLastWriteTime(src, path);
76-
SetLastAccessTime(src, path);
77-
Io.SetAttributes(path, src.Attributes);
74+
Logger.Try(() => SetCreationTime(src, path));
75+
Logger.Try(() => SetLastWriteTime(src, path));
76+
Logger.Try(() => SetLastAccessTime(src, path));
77+
Logger.Try(() => Io.SetAttributes(path, src.Attributes));
7878
}
7979

8080
#endregion

0 commit comments

Comments
 (0)