Skip to content

Commit ddd7e51

Browse files
committed
Create scaled down FilesAndDirs class so the new version of MarkAPL wll work.
1 parent a703070 commit ddd7e51

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Utils/FilesAndDirs.dyalog

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:Class FilesAndDirs
2+
This class exists solely in support of MarkAPL from APLTeam
3+
It provides comparable functionality to the FilesAndDirs class from https://github.com/aplteam/filesanddirs
4+
for 2 methods - NormalizePath and Exists
5+
(⎕ML ⎕IO)1 1
6+
r{expand}NormalizePath f
7+
:Access public shared
8+
:If 0=⎕NC'expand' expand0 :EndIf
9+
rexpand ⎕NPARTS f
10+
11+
rExists f
12+
:Access public shared
13+
r⎕NEXISTS⎕NPARTS f
14+
15+
:EndClass

0 commit comments

Comments
 (0)