File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1111f = uint64(0 );
1212if ~stdlib .exists(d ), return , end
1313
14- if stdlib .has_dotnet()
14+ if stdlib .has_python()
15+ di = py .shutil .disk_usage(d );
16+ f = uint64(di .total );
17+ elseif stdlib .has_dotnet()
1518 f = System .IO .DriveInfo(stdlib .absolute(d )).TotalSize();
1619 % https://learn.microsoft.com/en-us/dotnet/api/system.io.driveinfo.totalsize
1720elseif stdlib .has_java()
Original file line number Diff line number Diff line change @@ -263,14 +263,14 @@ function build_exe(context)
263263srcs = {
264264" src/remove.cpp" , ...
265265[" src/normalize.cpp" , normal ], ...
266- " src/disk_capacity.cpp" , ...
267266" src/set_permissions.cpp" , ...
268267};
269268
270269if ~stdlib .has_python() || build_all
271270srcs{end + 1 } = " src/is_char_device.cpp" ;
272271srcs{end + 1 } = [" src/is_admin.cpp" , " src/admin_fs.cpp" ];
273272srcs{end + 1 } = " src/disk_available.cpp" ;
273+ srcs{end + 1 } = " src/disk_capacity.cpp" ;
274274end
275275
276276if (isMATLABReleaseOlderThan(" R2024b" ) && ~stdlib .has_dotnet()) || build_all
You can’t perform that action at this time.
0 commit comments