garden / tree

A multiplayer file system
https://thefiletree.com
European Union Public License 1.2
70 stars 23 forks source link

Date function #156

Closed Dorvaryn closed 12 years ago

Dorvaryn commented 12 years ago

A date function in order to get last-modified information without having to load everything about the file. Allow the use of LRU cache in thrid party applications using the API.

jankeromnes commented 12 years ago

Sorry for not telling you, but I actually thought about this use case while writing the read function. If you call read with depth < 0 it will just send you the headers (with last-modified) without content or subfiles. I should document this somewhere.

I think a date function is not needed, and I'd like to keep the API as small and simple as possible if you don't mind :)

jankeromnes commented 12 years ago

Closing because I think the desired behavior is already implemented, but feel free to complain if it's actually not the case.