This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
oeed's profile picture

File Metadata

Started by oeed, 20 December 2013 - 01:45 PM
oeed #1
Posted 20 December 2013 - 02:45 PM
Is there way to get metadata from files, for example the date it was created etc.

In addition, would it be possible to use metadata in something such as a file browser without having to have a custom table of metadata store somewhere on the computer.
Symmetryc #2
Posted 20 December 2013 - 02:52 PM
Not really sure I understand what you're saying, but I suppose you could do something like a really long file extension i. e. "painting.nfp[12,20,2013,<other_stuff>]".

Edit: You would have to edit the fs api though to not show this part with fs.list and to add this part with fs.open and maybe some other things as well that I didn't take into account.
Edited on 20 December 2013 - 01:53 PM
Bomb Bloke #3
Posted 20 December 2013 - 03:43 PM
In addition, would it be possible to use metadata in something such as a file browser without having to have a custom table of metadata store somewhere on the computer.
I can't see any other method of doing so.