Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async dotGitExists(): Promise<boolean> {
- return fs
- .lstat(`${Globals.rootPath}.git`)
- .then(lstat => {
- return lstat.isDirectory();
- })
- .catch(err => {
- if (err.code !== 'ENOENT') {
- logger.error(
- `GitHub Stack: Error trying to access path : ${
- Globals.rootPath
- }.git`,
- );
- } else {
- logger.error(`GitHub Stack: Error trying to `);
- }
- return false;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement