improve absolute path handling

This commit is contained in:
2016-09-30 17:08:09 +02:00
parent e09ce0edc0
commit 3d0257768d
17 changed files with 106 additions and 103 deletions

View File

@@ -1,10 +1,10 @@
import "typings-global";
import plugins = require("./smartpath.plugins");
import 'typings-global'
import plugins = require('./smartpath.plugins')
export let isDir = function(pathArg:string){
return !isFile(pathArg);
export let isDir = function(pathArg: string){
return !isFile(pathArg)
}
export let isFile = function(pathArg){
return /\.[a-zA-Z]*$/.test(pathArg); // checks if there is a .anything at the end
}
return /\.[a-zA-Z]*$/.test(pathArg) // checks if there is a .anything at the end
}