Remove getBasename() function

This commit is contained in:
Aleksandr Statciuk 2021-08-16 12:35:31 +03:00
parent 67dc65a434
commit 8fce5218db

View File

@ -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
} }