mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 13:53:22 +02:00
fix spell error
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = syrup.serial()
|
||||
var log = logger.createLogger('device:plugins:filesystem')
|
||||
var plugin = Object.create(null)
|
||||
|
||||
plugin.retrive = function(file) {
|
||||
plugin.retrieve = function(file) {
|
||||
log.info('Retriving file %s', file)
|
||||
|
||||
return adb.pull(options.serial, file)
|
||||
@@ -37,7 +37,7 @@ module.exports = syrup.serial()
|
||||
// if this is a new store type, somethings need add to units/storage/plugins/
|
||||
return storage.store('blob', transfer, {
|
||||
filename: path.basename(file),
|
||||
contentType: 'text/plain', // FIXME(ssx): need to detect file type
|
||||
contentType: 'application/octet-stream', // FIXME(ssx): need to detect file type
|
||||
knownLength: stats.size
|
||||
})
|
||||
})
|
||||
@@ -49,7 +49,7 @@ module.exports = syrup.serial()
|
||||
|
||||
router.on(wire.FileSystemGetMessage, function(channel, message) {
|
||||
var reply = wireutil.reply(options.serial)
|
||||
plugin.retrive(message.file)
|
||||
plugin.retrieve(message.file)
|
||||
.then(function(file){
|
||||
push.send([
|
||||
channel,
|
||||
@@ -57,7 +57,7 @@ module.exports = syrup.serial()
|
||||
])
|
||||
})
|
||||
.catch(function(err){
|
||||
log.error('File retrive %s failed\n%s', message.file, err.stack)
|
||||
log.error('File retrieve %s failed\n%s', message.file, err.stack)
|
||||
push.send([
|
||||
channel,
|
||||
reply.fail(err.message)
|
||||
|
||||
Reference in New Issue
Block a user