Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Remove isDirectory function (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Berthe authored and Thomas Kelly committed Jul 31, 2017
1 parent 368d255 commit fa884e7
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/slate-tools/src/tasks/includes/utilities.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const gutil = require('gulp-util');
const fs = require('fs');
const _ = require('lodash');
const Promise = require('bluebird');

Expand Down Expand Up @@ -64,21 +63,6 @@ const utilities = {
}).thenReturn(results).all();
},

/**
* Checks whether the path is a directory
*
* @param path {String} - a string representing the path to a file
* @returns {boolean}
*/
isDirectory: (path) => {
try {
// eslint-disable-next-line no-sync
return fs.statSync(path).isDirectory();
} catch (error) {
return false;
}
},

/**
* Function passed to cheerio.run - adds aria tags & other accessibility
* based information to each svg element's markup...
Expand Down

0 comments on commit fa884e7

Please sign in to comment.