This commit is contained in:
life
2015-03-22 00:26:44 +08:00
parent 2518e6771d
commit 6d80d5091a
338 changed files with 34 additions and 665 deletions

2
src/node_modules/file.js generated vendored
View File

@@ -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];