@jsenv/filesystem
Advanced tools
Comparing version 4.6.9 to 4.7.0
{ | ||
"name": "@jsenv/filesystem", | ||
"version": "4.6.9", | ||
"version": "4.7.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
import { ensureEmptyDirectorySync } from "../remove/ensure_empty_directory_sync.js"; | ||
import { readFileStructureSync } from "./read_file_structure_sync.js"; | ||
import { writeFileSync } from "./write_file_sync.js"; | ||
@@ -7,2 +8,5 @@ | ||
if (fileStructure) { | ||
if (typeof fileStructure === "string" || fileStructure instanceof URL) { | ||
fileStructure = readFileStructureSync(fileStructure); | ||
} | ||
Object.keys(fileStructure).forEach((relativeUrl) => { | ||
@@ -9,0 +13,0 @@ const fileUrl = new URL(relativeUrl, directoryUrl); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128423
3736