From 889c90673d3404f0580077fb07cf5055574c92b9 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 15 Apr 2014 13:37:05 -0400 Subject: [PATCH] windows compat for sounds -- #clevercode --- src/meta.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta.js b/src/meta.js index c27e318664..3630d4ea5d 100644 --- a/src/meta.js +++ b/src/meta.js @@ -384,7 +384,7 @@ var fs = require('fs'), // Link paths async.each(filePaths, function(filePath, next) { - fs.symlink(filePath, path.join(soundsPath, path.basename(filePath)), 'file', next); + fs[process.platform !== 'win32' ? 'symlink' : 'link'](filePath, path.join(soundsPath, path.basename(filePath)), 'file', next); }, function(err) { if (!err) { winston.info('[sounds] Sounds OK');