From 41a94a7f354a72af807e25607de65ee98f3d1b63 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 24 Aug 2025 06:38:53 +0200 Subject: DIR: Add Windows-compatible statvfs. --- src/cmd/dir.zig | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/dir.zig b/src/cmd/dir.zig index 774bd8c..04f74dc 100644 --- a/src/cmd/dir.zig +++ b/src/cmd/dir.zig @@ -93,10 +93,6 @@ fn isLeapYear(year: u32) bool { const GetFreeDiskSpaceError = error{ NotImplemented, AccessDenied, OutOfMemory }; fn getFreeDiskSpace(path: []const u8) GetFreeDiskSpaceError!u64 { - if (@import("builtin").os.tag == .windows) { - return error.NotImplemented; - } - // Create null-terminated path for C function const allocator = std.heap.page_allocator; const null_terminated_path = try allocator.dupeZ(u8, path); -- cgit v1.2.1