6 ms·
It'd be hard to imagine how that should work on filesystem level (if I can't read contents of any directory, how do I figure out which directory do I add a newl
by robryk 11y ago
It'd be hard to imagine how that should work on filesystem level (if I can't read contents of any directory, how do I figure out which directory do I add a newly created file to?).
OTOH, on the file contents level this seems very much doable. Sadly, I am unaware of any general purpose implementation of such a thing (encfs doesn't do anything of this kind).
- tw04 11y agoYou create a new directory on start that is based on the date/time - which you know will always be unique.
- ars 11y ago> which you know will always be unique. Which you hope will always be unique. Raspberry Pi's don't have internal clocks. Time starts over on every reboot.
- widdma 11y agoThe GPS module can give you time, but it's probably easier and cheaper to have an RTC. E.g.: http://www.futurlec.com/Mini_DS1307.shtml http://www.futurlec.com/Mini_DS1307.shtml