File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
f = uint64(0 );
13
13
if ~stdlib .exists(d ), return , end
14
14
15
- if stdlib .has_python()
16
- f = py_disk_available(d );
17
- elseif stdlib .has_dotnet()
15
+ if stdlib .has_dotnet()
18
16
f = System .IO .DriveInfo(stdlib .absolute(d )).AvailableFreeSpace();
19
17
% https://learn.microsoft.com/en-us/dotnet/api/system.io.driveinfo.availablefreespace
20
18
elseif stdlib .has_java()
21
19
f = javaObject(" java.io.File" , d ).getUsableSpace();
20
+ elseif stdlib .has_python()
21
+ f = py_disk_available(d );
22
22
end
23
23
24
24
f = uint64(f );
Original file line number Diff line number Diff line change 10
10
f = uint64(0 );
11
11
if ~stdlib .exists(d ), return , end
12
12
13
- if stdlib .has_python()
14
- f = py_disk_capacity(d );
15
- elseif stdlib .has_dotnet()
13
+ if stdlib .has_dotnet()
16
14
f = System .IO .DriveInfo(stdlib .absolute(d )).TotalSize();
17
15
% https://learn.microsoft.com/en-us/dotnet/api/system.io.driveinfo.totalsize
18
16
elseif stdlib .has_java()
19
17
f = javaObject(" java.io.File" , d ).getTotalSpace();
18
+ elseif stdlib .has_python()
19
+ f = py_disk_capacity(d );
20
20
end
21
21
22
22
f = uint64(f );
You can’t perform that action at this time.
0 commit comments