Skip to content

Warnings #6

@blond

Description

@blond

In CLI mode tartifacts should log warn messages about broken symlinks and mismatching patterns.

By API

const tartifacts = require('tartifacts');

tartifacts({ dest: 'dir', includes: ['no-file.ext', 'broken.symlink'] })
    .then({ warnings } => {
        console.log(warnings);
    });

// [
//    {
//         path: 'path/to/no-file.ext',
//         message: 'File not found.'
//    },
//    {
//         path: 'broken.symlink',
//         message: 'Symlink is broken.'
//    },
//]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions