superdesk/superdesk-client-core

View on GitHub
build-tools/src/utils.js

Summary

Maintainability
A
0 mins
Test Coverage
const fs = require('fs');

function isDirectory(path) {
    try {
        return fs.lstatSync(path).isDirectory();
    } catch (e) {
        return false;
    }
}

module.exports = {
    isDirectory,
};