fix tabbing

This commit is contained in:
Oliver Matthews 2014-03-01 15:23:11 +00:00
parent 88cc89a0d1
commit 40e2cb1c6d

View file

@ -3,7 +3,7 @@ fs = require("fs")
LocalFileWriter = require("./LocalFileWriter") LocalFileWriter = require("./LocalFileWriter")
filterName = (key) -> filterName = (key) ->
return key.replace /\//, "_" return key.replace /\//, "_"
module.exports = module.exports =
@ -11,8 +11,8 @@ module.exports =
filteredTarget = filterName target filteredTarget = filterName target
logger.log location:location, target:filteredTarget, source:source, "sending file" logger.log location:location, target:filteredTarget, source:source, "sending file"
fs.rename source, "#{location}/#{filteredTarget}", (err) -> fs.rename source, "#{location}/#{filteredTarget}", (err) ->
if err!=null if err!=null
logger.err err:err, location:location, target:filteredTarget, source:source, "Error on put of file" logger.err err:err, location:location, target:filteredTarget, source:source, "Error on put of file"
callback err callback err
sendStream: ( location, target, sourceStream, callback = (err)->) -> sendStream: ( location, target, sourceStream, callback = (err)->) ->