Skip to content

Commit 1f7c4bb

Browse files
committed
size: native only
1 parent 1058eab commit 1f7c4bb

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

+stdlib/file_size.m

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,9 @@
1212

1313
s = [];
1414

15-
if stdlib.isoctave()
16-
[st, err] = stat(p);
17-
if err == 0
18-
s = st.size;
19-
end
20-
else
21-
d = dir(p);
22-
if ~isempty(d)
23-
s = d.bytes;
24-
end
15+
d = dir(p);
16+
if ~isempty(d)
17+
s = d.bytes;
2518
end
2619

2720
end

0 commit comments

Comments
 (0)