Skip to content

Commit

Permalink
Fix #570
Browse files Browse the repository at this point in the history
  • Loading branch information
mkromberg committed Sep 4, 2023
1 parent 76901ed commit 55036d7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions StartupSession/Link/Create.aplf
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,24 @@ NOHOLD:
emptydir1 isfile0
:EndIf

fulltargetdir
fulltarget0 U.NormFile dir
hasns(|nc)singlenc
:If isfilehasns
:If isfilencsinglenc Scripted thing
dir¯1⎕NPARTS fulltarget Directory is one up
emptyns1
:ElseIf ~opts.(preloadedflatten)
:If ~emptyns0U.ListNames nsrefns some APL names defined
:AndIf ~emptydir some dir/files defined
:AndIf (opts.source)'auto' 'dir' will not erase dir
link issue #160: allow some APL names to be tied to source files when source is dir - typically happens when starting dyalog with load=boot.aplf - won't work with arrays
emptynsemptyns U.EmptyNamespace nsref dir
:Else
emptyns0U.ListNames nsrefns
:If~opts.(preloadedflatten)
:If ~emptyns some APL names defined
:AndIf ~emptydir some dir/files defined
:AndIf (opts.source)'auto' 'dir' will not erase dir
emptynsemptyns U.EmptyNamespace nsref dir
:EndIf
:EndIf
:EndIf
:Else emptyns1
:Else
emptyns1
:EndIf

:If opts.singlefileisfile
Expand Down

0 comments on commit 55036d7

Please sign in to comment.