(p, content, opts)
| 6712 | } |
| 6713 | } |
| 6714 | async writeFilePromise(p, content, opts) { |
| 6715 | return await new Promise((resolve, reject) => { |
| 6716 | const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p; |
| 6717 | if (opts) { |
| 6718 | this.realFs.writeFile(fsNativePath, content, opts, this.makeCallback(resolve, reject)); |
| 6719 | } else { |
| 6720 | this.realFs.writeFile(fsNativePath, content, this.makeCallback(resolve, reject)); |
| 6721 | } |
| 6722 | }); |
| 6723 | } |
| 6724 | writeFileSync(p, content, opts) { |
| 6725 | const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p; |
| 6726 | if (opts) { |
nothing calls this directly
no test coverage detected