thecodrr / fdir

⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s

Home Page:https://thecodrr.github.io/fdir/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with SharePoint project accessible over the network

glenn2223 opened this issue · comments

commented

Hey, me again! Got another issue over at glenn2223/vscode-live-sass-compiler#253. Is this out of scope?

For reference, it's from about this comment you probably care about.

The code snippet below is what produced the highlighted output in this comment

try {
    const x = (await new fdir()
        .crawlWithOptions(basePath, {
            filters: [
                (filePath) =>
                    filePath.toLowerCase().endsWith(".scss") ||
                    filePath.toLowerCase().endsWith(".sass"),
            ],
            includeBasePath: true,
            resolvePaths: true,
            suppressErrors: false,
        })
        .withPromise());

    OutputWindow.Show(OutputLevel.Trace, "fdir Output", [
        JSON.stringify(x),
    ]);
} catch (error) {
    let message = "Unknown Error",
        json = '{"json":null}';

    if (error instanceof Error) {
        message = error.message;

        json = JSON.parse(
            JSON.stringify(error, Object.getOwnPropertyNames(error))
        );
    }

    OutputWindow.Show(OutputLevel.Trace, "fdir ERROR", [
        message,
        json,
    ]);
}

@glenn2223 is this still an issue?

commented

No, sorry - closing