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 1212f = uint64(0 );
1313if ~stdlib .exists(d ), return , end
1414
15- if stdlib .has_python()
16- f = py_disk_available(d );
17- elseif stdlib .has_dotnet()
15+ if stdlib .has_dotnet()
1816 f = System .IO .DriveInfo(stdlib .absolute(d )).AvailableFreeSpace();
1917 % https://learn.microsoft.com/en-us/dotnet/api/system.io.driveinfo.availablefreespace
2018elseif stdlib .has_java()
2119 f = javaObject(" java.io.File" , d ).getUsableSpace();
20+ elseif stdlib .has_python()
21+ f = py_disk_available(d );
2222end
2323
2424f = uint64(f );
Original file line number Diff line number Diff line change 1010f = uint64(0 );
1111if ~stdlib .exists(d ), return , end
1212
13- if stdlib .has_python()
14- f = py_disk_capacity(d );
15- elseif stdlib .has_dotnet()
13+ if stdlib .has_dotnet()
1614 f = System .IO .DriveInfo(stdlib .absolute(d )).TotalSize();
1715 % https://learn.microsoft.com/en-us/dotnet/api/system.io.driveinfo.totalsize
1816elseif stdlib .has_java()
1917 f = javaObject(" java.io.File" , d ).getTotalSpace();
18+ elseif stdlib .has_python()
19+ f = py_disk_capacity(d );
2020end
2121
2222f = uint64(f );
You can’t perform that action at this time.
0 commit comments