We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30321d2 + 9cb1996 commit e8a661dCopy full SHA for e8a661d
examples/react/vfs.odin
@@ -13,7 +13,8 @@ index_paths := make([dynamic]string) // dynamic array to hold index_files/paths
13
14
// Function to walk a directory and populate virtual_files and index_paths
15
build_virtual_file_system :: proc(root_dir: string) {
16
- dir_stack: [dynamic]string = {root_dir} // stack like array for creating rel paths as we traverse files
+ dir_stack: [dynamic]string // stack like array for creating rel paths as we traverse files
17
+ append(&dir_stack, root_dir)
18
19
// loop through stack-like array till empty
20
for len(dir_stack) > 0 {
0 commit comments