We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a703070 commit ddd7e51Copy full SHA for ddd7e51
Utils/FilesAndDirs.dyalog
@@ -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' ⋄ expand←0 ⋄ :EndIf
9
+ r←∊expand ⎕NPARTS f
10
+ ∇
11
+ ∇ r←Exists f
12
13
+ r←⎕NEXISTS∊⎕NPARTS f
14
15
+:EndClass
0 commit comments