bem-site / bem-lib-site-view

1 stars 3 forks source link

Fix fs-helper exists #7

Closed iniel closed 8 years ago

iniel commented 8 years ago

Helper write doesn't work for existing dirs, because exists returns boolean.

function write(filename, content) {
    var dirname = path.dirname(filename);

    return exists(dirname).then(function(doesExists) {
        ...
tadatuta commented 8 years ago

@iniel thank you!