+3
-2
apps/hosting-service/src/lib/utils.ts
+3
-2
apps/hosting-service/src/lib/utils.ts
···
252
252
});
253
253
}
254
254
} else {
255
-
// If fetch failed, skip this entry
256
-
console.warn(`Failed to fetch subfs at ${fullPath}, skipping`);
255
+
// If not in map yet, preserve the subfs node for next recursion depth
256
+
console.log(`[Depth ${depth}] Subfs at ${fullPath} not yet fetched, preserving for next iteration`);
257
+
result.push(entry);
257
258
}
258
259
} else if ('type' in node && node.type === 'directory' && 'entries' in node) {
259
260
// Recursively process subdirectories
+2
-2
packages/@wisp/fs-utils/src/tree.ts
+2
-2
packages/@wisp/fs-utils/src/tree.ts
···
54
54
if (parts.length === 1) {
55
55
// Root level file
56
56
entries.push({
57
-
name: parts[0],
57
+
name: parts[0]!,
58
58
node: {
59
59
$type: 'place.wisp.fs#file' as const,
60
60
type: 'file' as const,
···
110
110
};
111
111
112
112
existingEntry = {
113
-
name: part,
113
+
name: part!,
114
114
node: newDir
115
115
};
116
116
currentEntries.push(existingEntry);