         # knowing about the backup, in which case it makes more sense
         # to just go with the master.
 
-        no_master = undefined
-        stats_path = undefined
-        no_backup = undefined
+        no_master    = undefined
+        stats_path   = undefined
+        no_backup    = undefined
         stats_backup = undefined
-        file = undefined
+        stats        = undefined
+        file         = undefined
 
         async.series([
             (cb) =>

            socket.write_mesg('json', resp)

    read_from_disk: (socket, mesg) =>
        fs.readFile @path, (err, data) =>
            if err
                socket.write_mesg('json', message.error(id:mesg.id, error:"Error reading file '#{@path}' to disk"))
            else
                value = data.toString()
                if value == @content
                    # nothing to do -- so do not do anything!
                    socket.write_mesg('json', message.success(id:mesg.id))
                    return
                @set_content(value)
                # Tell the global hubs that now might be a good time to do a sync.
                for id, ds of @diffsync_clients
                    ds.remote.sync_ready()

    get_content: (socket, mesg) =>
        @is_active = true

json = (out) -> misc.trunc(misc.to_json(out),512)

{ensure_containing_directory_exists, abspath} = misc_node

# We make it an error for a client to try to edit a file larger than MAX_FILE_SIZE.
# I decided on this, because attempts to open a much larger file leads
# to disaster.  Opening a 10MB file works but is a just a little slow.
MAX_FILE_SIZE = 10000000   # 10MB
check_file_size = (size) ->
    if size? and size > MAX_FILE_SIZE
        e = "Attempt to open large file of size #{Math.round(size/1000000)}MB; the maximum allowed size is #{Math.round(MAX_FILE_SIZE/1000000)}MB. Use vim, emacs, or pico from a terminal instead."
        winston.debug(e)
        return e


#####################################################################
# Generate the "secret_token" file as
