Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Improve watchDir jsSDK default value

Jakub Dobrýd35880c74e56
diff --git a/packages/js-sdk/src/sandbox/filesystem/index.ts b/packages/js-sdk/src/sandbox/filesystem/index.ts
index ccba155bc..89f7c34ef 100644
--- a/packages/js-sdk/src/sandbox/filesystem/index.ts
+++ b/packages/js-sdk/src/sandbox/filesystem/index.ts
@@ -103,6 +103,7 @@ export class Filesystem {
private readonly rpc: Client<typeof FilesystemService>
private readonly defaultWatchTimeout = 60_000 // 60 seconds
+ private readonly defaultWatchRecursive = false
constructor(
transport: Transport,
@@ -452,7 +453,7 @@ export class Filesystem {
const events = this.rpc.watchDir(
{
path,
- recursive: opts?.recursive ?? false,
+ recursive: opts?.recursive ?? this.defaultWatchRecursive,
},
{
headers: {