{"shas":[["c5394a55e5e4a10ef92cfb1b86d1a0757f3a387e","088e16a1019277b15d58faf0541e11910eb756f6@mynix.co.uk","re-imagined in coffee-script.\n\nbe warned - all error checking has been removed, and this only contains the basic file object - no versioning.\n\nthe file object has been re-written as an object though, with access to the fo-core static methods for mongo interaction. this (imo) makes for a cleaner api at the user level:\n\nto create a new object :\nfo.init (err, fo) ->\n\tfo.write \"/path/to/file\", (err, fo) ->\n\t\tconsole.log fo.stat\n\nto update an existing object:\nfo.init \"id_of_object\", (err, fo) ->\n\tfo.write \"/path/to/new/file\", (err, fo) ->\n\t\tconsole.log fo.stat\n\nto retrieve an existing object:\nfo.init \"id_of_object\", (err, fo) ->\n\tfo.read (err, fo) ->\n\t\tconsole.log fo.stat\n\nto delete an object:\nfo.init \"id_of_object\", (err, fo) ->\n\tfo.rm (err, id) ->\n\t\tconsole.log id","Simon"]],"ref":"refs/heads/master","size":1,"head":"c5394a55e5e4a10ef92cfb1b86d1a0757f3a387e","push_id":33161225}