Remove getBasename() function
This commit is contained in:
parent
67dc65a434
commit
8fce5218db
@ -5,10 +5,6 @@ const fs = require('fs')
|
|||||||
const rootPath = path.resolve(__dirname) + '/../../'
|
const rootPath = path.resolve(__dirname) + '/../../'
|
||||||
const file = {}
|
const file = {}
|
||||||
|
|
||||||
file.getBasename = function (filename) {
|
|
||||||
return path.basename(filename, path.extname(filename))
|
|
||||||
}
|
|
||||||
|
|
||||||
file.getFilename = function (filename) {
|
file.getFilename = function (filename) {
|
||||||
return path.parse(filename).name
|
return path.parse(filename).name
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user