🎨 Update files structure

This commit is contained in:
brunosimon
2017-07-18 03:47:13 +02:00
parent 5a7431a6b9
commit 2b49b8a847
29 changed files with 13 additions and 24 deletions
+38
View File
@@ -0,0 +1,38 @@
'use strict'
// Dependencies
const path = require('path')
class Paths
{
constructor()
{
this.separator = path.sep
}
normalize(_path)
{
if(_path === '.' || _path === '')
{
const path = '.'
return path
}
const normalizedPath = './' + path.normalize(_path)
return normalizedPath
}
parse(_path)
{
const normalizedPath = this.normalize(_path)
const parsedPath = path.parse(normalizedPath)
return parsedPath
}
}
const paths = new Paths()
module.exports = paths