Dyalog / link

Source code for Link – the built-in component that enables the use of text files as the primary storage mechanism for APL source code
https://dyalog.github.io/link
MIT License
19 stars 11 forks source link

Link.Create on # does not work with forceFilenames←1 and source=dir #521

Open aplteam opened 1 year ago

aplteam commented 1 year ago

Attempting to run Link.Create on the root (when code is in # rather than in a sub-namespace) fails with a FILE ACCESS ERROR in case the forceFilenames parameter is 1 and the source parameter is "dir".

To reproduce execute these steps with the Link variable DEBUG set to 1 and ]udebug on:

    ]Link.Create  # /path/to/any/empty/folder -forcefilenames -source=dir
FILE ACCESS ERROR: /path/to/any/empty/folder: Unable to move ("The process cannot access the file because it is being used by another process.")
Relocate[7] r,←nextto ⎕NMOVE nextfrom
      ⎕←nextfrom
/path/to/any/empty/folder/
      ⎕←nextto
/path/to/any/empty/folder/#/

Version info:

]tooLS.Version
 Dyalog  18.2.46763 64-bit Unicode, BuildID ee417cdf            
 OS      Windows 10 or Windows Server 2016 (10.0.19045) 64-bit  
 Link    3.1.2                                                  
 SALT    2.9                                                    
 UCMD    2.51                                                   
 .NET    .NET Framework 4.8.4614.0                              
 Tatin   0.91.0-beta-2                                          
 Cider   0.23.5                                                 
 WS      18.0