Skip to content

Commit 5b6f41e

Browse files
committed
test:disk_capacity: param fun
1 parent 9a874d6 commit 5b6f41e

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

+stdlib/+dotnet/disk_capacity.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function f = disk_capacity(d)
2+
3+
f = uint64(System.IO.DriveInfo(stdlib.absolute(d)).TotalSize());
4+
% https://learn.microsoft.com/en-us/dotnet/api/system.io.driveinfo.totalsize
5+
6+
end

+stdlib/+java/disk_capacity.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function f = disk_capacity(d)
2+
3+
f = uint64(javaObject("java.io.File", d).getTotalSpace());
4+
5+
end

test/TestDisk.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
properties (TestParameter)
99
Ps = {".", "", "/", getenv("SystemDrive"), "not-exist"}
10-
device_fun = {@stdlib.device, @stdlib.sys.device, @stdlib.dotnet.device, @stdlib.java.device, @stdlib.python.device}
10+
device_fun = {@stdlib.device, @stdlib.sys.device, @stdlib.java.device, @stdlib.python.device}
1111
end
1212

1313
methods (Test)

0 commit comments

Comments
 (0)