Skip to content

Commit f3810da

Browse files
committed
publish subfunctions too
1 parent 3e959d8 commit f3810da

21 files changed

+83
-13
lines changed

+stdlib/+dotnet/cpu_arch.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% DOTNET.CPU_ARCH get the Operating System architecture
2+
13
function a = cpu_arch()
24
a = string(System.Runtime.InteropServices.RuntimeInformation.OSArchitecture);
35
% https://learn.microsoft.com/en-us/dotnet/core/compatibility/interop/7.0/osarchitecture-emulation

+stdlib/+dotnet/create_symlink.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% DOTNET.CREATE_SYMLINK create symbolic link to target
2+
13
function ok = create_symlink(target, link)
24

35
ok = false;

+stdlib/+dotnet/device.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% DOTNET.DEVICE find the drive device ID
2+
13
function i = device(path)
24

35
% this has been not so stable, so we disabled it and leave it here for reference.

+stdlib/+dotnet/disk_available.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% DOTNET.DISK_AVAILABLE find the disk space available to the user
2+
13
function f = disk_available(p)
24

35
f = uint64(0);

+stdlib/+dotnet/disk_capacity.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% DOTNET.DISK_CAPACITY find the overall disk capacity visible to user
2+
13
function f = disk_capacity(d)
24

35
f = uint64(0);

+stdlib/+dotnet/filesystem_type.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% DOTNET.FILESYSTEM_TYPE type of the partition e.g. NTFS, ext4, ...
2+
13
function t = filesystem_type(p)
24

35
if ~stdlib.exists(p)

+stdlib/+dotnet/get_hostname.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
%% DOTNET.GET_HOSTNAME get the computer network hostname
2+
% not necessary FQDN
3+
14
function n = get_hostname()
25

36
n = string(System.Environment.MachineName);

+stdlib/+dotnet/get_owner.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% DOTNET.GET_OWNER get the owner of a filepath
2+
13
function o = get_owner(p)
24

35
if ~stdlib.exists(p)

+stdlib/+dotnet/get_username.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% DOTNET.GET_USERNAME get the login name
2+
13
function n = get_username()
24
% https://learn.microsoft.com/en-us/dotnet/api/system.environment.username
35

+stdlib/+dotnet/is_admin.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% DOTNET.IS_ADMIN is the user running as root?
2+
13
function y = is_admin()
24

35
% com.sun.security.auth.module.NTSystem().getGroupIDs();

0 commit comments

Comments
 (0)