Mantis - Squeak
Viewing Issue Advanced Details
7849 Files major always 03-22-16 02:02 03-22-16 02:02
anonymous90  
 
normal  
new 5.0  
open  
none    
none  
0007849: FileDirectory issues with relative UNIX paths in Squeak 5.0
If you evaluate this in Squeak 5.0 on UNIX:
   (FileStream forceNewFileNamed: 'foo.txt') close.
   FileDirectory default directoryEntryFor: './foo.txt'

you get nil. change the './foo.txt' to 'foo.txt', and it works as expected.

A similar error occurs when creating FileDirectories:

   FileDirectory forFileName: './foo.txt'

gives a FileDirectory for the root "/" directory. but replace './foo.txt' with 'foo.txt', and it works.

There are no notes attached to this issue.