 child_process = require 'child_process'
 path = require 'path'
 util = require 'util'
-
-kEmptyBufferLength = 0
 
 # Cache asar archive objects.
 cachedArchives = {}


    info = archive.getFileInfo filePath
    return callback createNotFoundError(asarPath, filePath) unless info

    if info.unpacked
      realPath = archive.copyFileOut filePath

    flag = options.flag || 'r'
    encoding = options.encoding

    buffer = new Buffer(info.size)
    fd = openSync archive.path, flag
    try
      fs.readSync fd, buffer, 0, info.size, info.offset
    catch e
      throw e
    finally
      fs.closeSync fd
    if encoding then buffer.toString encoding else buffer

  readdir = fs.readdir
  fs.readdir = (p, callback) ->
