Node.js based forum software built for the modern web
windows compat for sounds -- #clevercode
Julian Lam889c90673d34
diff --git a/src/meta.js b/src/meta.jsindex c27e318664..3630d4ea5d 100644--- a/src/meta.js+++ b/src/meta.js@@ -384,7 +384,7 @@ var fs = require('fs'),// Link pathsasync.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');