···252252 });
253253 }
254254 } else {
255255- // If fetch failed, skip this entry
256256- console.warn(`Failed to fetch subfs at ${fullPath}, skipping`);
255255+ // If not in map yet, preserve the subfs node for next recursion depth
256256+ console.log(`[Depth ${depth}] Subfs at ${fullPath} not yet fetched, preserving for next iteration`);
257257+ result.push(entry);
257258 }
258259 } else if ('type' in node && node.type === 'directory' && 'entries' in node) {
259260 // Recursively process subdirectories