今天來給大家介紹一個實用功能,如何遍歷一個文件夾。Dir 裏提供了一個方便的 walk 方法,它可以直接實現這個目的:const std = @import("std");const fs = std.fs;const print = std.debug.print;pub fn main() @void { var gpa = std.heap.GeneralPurposeAllocato ⌘ Read more=
今天來給大家介紹一個實用功能,如何遍歷一個文件夾。Dir 裏提供了一個方便的 walk 方法,它可以直接實現這個目的:const std = @import("std");const fs = std.fs;const print = std.debug.print;pub fn main() @void { var gpa = std.heap.GeneralPurposeAllocato ⌘ Read more=