@poe-platform/safe-bash 0.1.230 → 0.1.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4352,7 +4352,7 @@ async function openFileOutput(context, path, flag, incremental) {
|
|
|
4352
4352
|
}
|
|
4353
4353
|
signal.throwIfAborted();
|
|
4354
4354
|
const streaming = flag === "a" ? capabilities.streamingAppend ?? capabilities.streamingWrite : capabilities.streamingWrite;
|
|
4355
|
-
if (!incremental && streaming !== false && fs.writeStream) {
|
|
4355
|
+
if ((!incremental || capabilities.descriptorWriteStream === true) && streaming !== false && fs.writeStream) {
|
|
4356
4356
|
try {
|
|
4357
4357
|
await fs.writeStream(path, source, { flag, signal });
|
|
4358
4358
|
if (!ended) throw new FsError("EIO", { path, message: "Streaming writer returned before consuming output" });
|