thecodrr / fdir

⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
https://thecodrr.github.io/fdir/
MIT License
1.46k stars 51 forks source link

Issue with SharePoint project accessible over the network #87

Closed glenn2223 closed 1 year ago

glenn2223 commented 1 year ago

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,
    ]);
}
thecodrr commented 1 year ago

@glenn2223 is this still an issue?

glenn2223 commented 1 year ago

No, sorry - closing