(p, content, opts)
| 6694 | return this.realFs.copyFileSync(npath.fromPortablePath(sourceP), npath.fromPortablePath(destP), flags); |
| 6695 | } |
| 6696 | async appendFilePromise(p, content, opts) { |
| 6697 | return await new Promise((resolve, reject) => { |
| 6698 | const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p; |
| 6699 | if (opts) { |
| 6700 | this.realFs.appendFile(fsNativePath, content, opts, this.makeCallback(resolve, reject)); |
| 6701 | } else { |
| 6702 | this.realFs.appendFile(fsNativePath, content, this.makeCallback(resolve, reject)); |
| 6703 | } |
| 6704 | }); |
| 6705 | } |
| 6706 | appendFileSync(p, content, opts) { |
| 6707 | const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p; |
| 6708 | if (opts) { |
nothing calls this directly
no test coverage detected