mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-20 02:31:23 +00:00
导入evernote <en-media问题
This commit is contained in:
9
src/node_modules/file.js
generated
vendored
9
src/node_modules/file.js
generated
vendored
@@ -37,6 +37,7 @@ var File = {
|
||||
var filename = Common.uuid() + '.' + type;
|
||||
if(isImage) {
|
||||
var basePath = User.getCurUserImagesPath();
|
||||
|
||||
} else {
|
||||
var basePath = User.getCurUserAttachsPath();
|
||||
}
|
||||
@@ -86,10 +87,11 @@ var File = {
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
// console.log(txtPath);
|
||||
// console.log(filePath);
|
||||
Common.cmd([txtPath, filePath], function(code) {
|
||||
console.log('子进程已关闭,代码:' + code);
|
||||
fs.unlink(txtPath);
|
||||
// console.log('子进程已关闭,代码:' + code);
|
||||
// fs.unlink(txtPath);
|
||||
if(!code) {
|
||||
try {
|
||||
if(isImage) {
|
||||
@@ -101,6 +103,7 @@ var File = {
|
||||
me._addAttach(filePath, fileTitle, callback)
|
||||
}
|
||||
} catch(e) {
|
||||
console.log(e);
|
||||
callback(false);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user