smartgit/ts/smartgit.helpers.ts
2016-07-04 00:00:04 +02:00

12 lines
272 B
TypeScript

import * as plugins from "./smartgit.plugins";
export let isGitDirectory = (dirPathArg):boolean => {
try {
return plugins.smartfile.fs.isDirectory(
plugins.path.join(dirPathArg,".git")
);
}
catch(err){
return false;
}
}