mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Use node's crypto from fs.md5ForPath()
This commit is contained in:
@@ -146,7 +146,8 @@ module.exports =
|
||||
traverse(rootPath, '', onFile, onDirectory)
|
||||
|
||||
md5ForPath: (path) ->
|
||||
$native.md5ForPath(path)
|
||||
contents = nodeFs.readFileSync(path)
|
||||
nodeRequire('crypto').createHash('md5').update(contents).digest('hex')
|
||||
|
||||
resolve: (args...) ->
|
||||
extensions = args.pop() if _.isArray(_.last(args))
|
||||
|
||||
Reference in New Issue
Block a user