link
link copied to clipboard
link w/o flatten: getFilename hook called when new file is added to a linked folder, but with wrong apl name in args
Describe the bug When using the getFilename hook, the fully qualified apl name (and old name) is incorrect.
To Reproduce
)clear
clear ws
3⎕NDELETE 'test'
3⎕mkdir'test/sub'
fileHandler←{''⊣⎕←⍵}
]link.create -getfilename=#.fileHandler #.test ./test
Linked: #.test ←→ /Users/gil/test
(⊂'r←foo' 'r←42')⎕NPUT 'test/sub/foo.aplf'
getFilename [#.test ←→ /Users/gil/test] /Users/gil/test/sub/foo.aplf #.test.foo 3.1 #.test.foo
Expected behaviour
I would expect the apl name to be #.test.sub.foo
Desktop (please complete the following information): IDE: Version: 4.4.3726 Electron: 13.6.9 Chrome: 91.0.4472.164 Node: 14.16.0 Platform: MacIntel ⎕SE.Link.Version: 3.0.19