Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove our OSX hack, not needed with LOAD DATA LOCAL INFILE

  • Loading branch information...
commit da695b6537b9a7d118b87d0b5be03a672b39e62c 1 parent b414499
@jhurliman authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 models/mysql.js
View
6 models/mysql.js
@@ -161,12 +161,8 @@ function addTrack(artistID, fp, callback) {
if (info.affectedRows !== 1) return callback('Track insert failed', null);
var trackID = info.insertId;
-
var tempName = temp.path({ prefix: 'echoprint-' + trackID, suffix: '.csv' });
- // HACK: Work around permission problem with temporary paths on OSX
- if (tempName.indexOf('/var/folders/') === 0)
- tempName = '/tmp/' + require('path').basename(tempName);
-
+
// Write out the codes to a file for bulk insertion into MySQL
log.debug('Writing ' + fp.codes.length + ' codes to temporary file ' + tempName);
writeCodesToFile(tempName, fp, trackID, function(err) {
Please sign in to comment.
Something went wrong with that request. Please try again.