Skip to content

Commit d6c8994

Browse files
committed
FIX: retain setting the date value when querying file/dir ports as an object (for backwards compatibility)
1 parent b9932bf commit d6c8994

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/core/p-file.c

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@
205205
Set_File_Mode_Value(file, SYM_CREATED, OFV(obj, STD_FILE_INFO_CREATED));
206206
Set_File_Mode_Value(file, SYM_ACCESSED, OFV(obj, STD_FILE_INFO_ACCESSED));
207207
Set_File_Mode_Value(file, SYM_MODIFIED, OFV(obj, STD_FILE_INFO_MODIFIED));
208+
Set_File_Mode_Value(file, SYM_DATE, OFV(obj, STD_FILE_INFO_MODIFIED)); // for backward compatibility
208209
SET_OBJECT(ret, obj);
209210
}
210211
}

src/tests/units/port-test.r3

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ if system/platform = 'Windows [
206206
--assert info/type = 'dir
207207
--assert none? info/size
208208
either system/platform = 'Windows [
209-
--assert none? info/date
209+
--assert none? info/modified
210210
][
211211
; on linux %/ is just a normal directory root
212-
--assert date? info/date
212+
--assert date? info/modified
213213
]
214214

215215
--test-- "unicode directory"

0 commit comments

Comments
 (0)