v6.1.0
版本发布时间: 2023-08-14 02:33:27
thecodrr/fdir最新发布版本:v6.3.0(2024-08-25 21:58:51)
withPathSeparator(separator: "/" | "\")
🆕
withPathSeparator
option allows you enforcing a specific path separator regardless of what platform the code is running on. This is especially useful if your test snapshots contain paths as those snapshots will fail on Windows because Node.js uses \\
path separator on Windows by default.
For example:
const files = await new fdir().withFullPaths().withPathSeparator("/").crawl("node_modules").withPromise();