Merge pull request #64 from 1st-rapid-response-force/master

Multi-Partition File system issue
This commit is contained in:
Björn Dahlgren 2017-08-23 09:31:25 +02:00 committed by GitHub
commit d5ea4e3f1c

View File

@ -1,6 +1,6 @@
var async = require('async');
var filesize = require('filesize');
var fs = require('fs');
var fs = require ('fs.extra');
var path = require('path');
var SteamWorkshop = require('steam-workshop');
@ -48,7 +48,7 @@ Missions.prototype.list = function (cb){
Missions.prototype.handleUpload = function (uploadedFile, cb) {
var filename = decodeURI(uploadedFile.originalname.toLowerCase());
fs.rename(uploadedFile.path, path.join(this.missionsPath(), filename), function (err) {
fs.move (uploadedFile.path, path.join(this.missionsPath(), filename), function (err) {
cb(err);
});
};