mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-20 02:31:23 +00:00
...
This commit is contained in:
2
src/node_modules/file.js
generated
vendored
2
src/node_modules/file.js
generated
vendored
@@ -7,6 +7,7 @@ var User = require('user');
|
||||
var Common = require('common');
|
||||
var Images = db.images;
|
||||
var Attachs = db.attachs;
|
||||
var Web = require('web');
|
||||
|
||||
function log(o) {
|
||||
console.log(o);
|
||||
@@ -345,6 +346,7 @@ var File = {
|
||||
var fileStat = fs.statSync(filePath);
|
||||
var paths = filePath.split(Common.getPathSep()); // windows的filePath不同
|
||||
var name = paths[paths.length-1];
|
||||
// Web.alertWeb(name);
|
||||
var names = name.split('.');
|
||||
var ext = names[names.length-1];
|
||||
|
||||
|
Reference in New Issue
Block a user