From 41ab84eabaab56d566a65dbf3b1019b562186589 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Tue, 9 Jun 2020 11:43:56 +0100 Subject: [PATCH] So not attempt to alter creation date of newly created file. --- Source/NSData.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/NSData.m b/Source/NSData.m index 0258d7338..6f345f5e4 100644 --- a/Source/NSData.m +++ b/Source/NSData.m @@ -1787,9 +1787,11 @@ failure: { /* * We have created a new file - so we attempt to make it's - * attributes match that of the original. + * attributes match that of the original (except for those + * we can't reasonably set). */ [att removeObjectForKey: NSFileSize]; + [att removeObjectForKey: NSFileCreationDate]; [att removeObjectForKey: NSFileModificationDate]; [att removeObjectForKey: NSFileReferenceCount]; [att removeObjectForKey: NSFileSystemNumber];