Skip to content

Commit 642f520

Browse files
committed
remove use of deprecated functions
1 parent 7ee02c1 commit 642f520

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

+stdlib/exists.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
fpath {mustBeTextScalar}
1717
end
1818

19-
y = stdlib.is_file(fpath) || stdlib.is_folder(fpath);
19+
y = isfile(fpath) || isfolder(fpath);
2020

2121
end

+stdlib/perl_exe.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
rethrow(e)
2424
end
2525

26-
if s == 0 && stdlib.is_file(r)
26+
if s == 0 && isfile(r)
2727
exe = r;
2828
perle = r;
2929
end

test/TestFileImpure.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function test_null_file(tc)
3939

4040
function test_makedir(tc)
4141
d = 'test_makedir.dir';
42-
stdlib.makedir(d)
42+
tc.assertTrue(stdlib.makedir(d))
4343

4444
tc.verifyThat(d, matlab.unittest.constraints.IsFolder)
4545
end

test/TestHDF4.m

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

99
methods (TestClassSetup)
1010
function check_file(tc)
11-
tc.assumeTrue(stdlib.is_file(tc.file), 'HDF4 file not found:')
11+
tc.assumeThat(tc.file, matlab.unittest.constraints.IsFile, 'HDF4 file not found')
1212
end
1313
end
1414

0 commit comments

Comments
 (0)