mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 18:55:29 -05:00
[next] FS create folder before writing in it (#1582)
This commit is contained in:
committed by
GitHub
parent
7e0aceced1
commit
2555833831
@@ -1,4 +1,4 @@
|
||||
import { clean, writeFile as writeFileUtil } from "./_utils.js";
|
||||
import { clean } from "./_utils.js";
|
||||
|
||||
// REQUIRES INTEGRATION TEST
|
||||
/* c8 ignore start */
|
||||
@@ -20,7 +20,4 @@ export const runEvent = async (interpreter, code, event) => {
|
||||
for (const key of keys) [context, target] = [target, target[key]];
|
||||
await target.call(context, event);
|
||||
};
|
||||
|
||||
export const writeFile = ({ FS }, path, buffer) =>
|
||||
writeFileUtil(FS, path, buffer);
|
||||
/* c8 ignore stop */
|
||||
|
||||
Reference in New Issue
Block a user