smartgit/ts/smartgit.helpers.ts

12 lines
272 B
TypeScript
Raw Normal View History

2016-07-03 02:03:15 +00:00
import * as plugins from "./smartgit.plugins";
export let isGitDirectory = (dirPathArg):boolean => {
2016-07-03 22:00:04 +00:00
try {
return plugins.smartfile.fs.isDirectory(
plugins.path.join(dirPathArg,".git")
);
}
catch(err){
return false;
}
2016-07-03 02:03:15 +00:00
}