freenode/#mezzano - IRC Chatlog
Search
18:46:10
froggey
I used SET- because using a setf function didn't make a whole lot of sense to me. file-properties returns a list of properties, but that list doesn't really exist
18:46:52
froggey
so the set function needs to walk the list and set properties as appropriate, which doesn't really seem to match up with the behaviour of setf
18:47:44
froggey
plus using keyword arguments makes rejecting unsupported properties a little easier
18:48:44
froggey
file-properties should return the properties that the file system thinks are appropriate to return, I'm deliberately leaving it open-ended because I don't know what properties should be returned
18:49:19
froggey
nope. I don't know how FAT works, I left that there as an example showing how a method on set-file-properties could be defined
18:52:36
ebrasca
When you use file-properties you need to know what FS you are in and posibly write specific code for it.
18:53:35
froggey
file systems should implement common properties like :write-date or :creation-date, but beyond that I'm not going to constrain them
18:55:35
froggey
wouldn't that be :access-date, as it normally updates on any access? not just reads
18:59:42
ebrasca
froggey: I don't undestand this 2 functions to implement them , I ignore them for now.
19:02:35
froggey
they're just like the old file-write-date-using-host function, they just have to do more
19:02:56
froggey
ext4.lisp didn't have an implementation of file-write-date-using-host, so there wasn't anything for me to update
19:16:38
froggey
conses are small and fast to allocate and file metadata queries are extremely infrequent