 class DoppioFile
   @fromJSON: (path, rawData) ->
     data = JSON.parse rawData
-    new DoppioFile(path, data.data, data.mtime)
+    new DoppioFile(path, data.data, data.mtime, false, data.mode)
 
   constructor: (@path, @data = "", @mtime = (new Date).getTime(), @mod = false, @mode = 0o644) ->
 

    JSON.stringify
      data: @data
      mtime: @mtime

# Helper object. Used by some FileSources to maintain an index of files.
class FileIndex

    return true
  chmod: (path, access, cb) ->
    try
      rv = root.fs.chmodSync path, access
      cb null, rv
    catch e
      cb e
