Mantis - Squeak
Viewing Issue Advanced Details
7853 Any major always 07-22-16 22:22 07-28-16 10:25
TimNN  
KenCausey  
normal  
assigned trunk  
open  
none    
none  
0007853: Files-cmm.159 causes a regression (since #/ returns object of a different class)
The following works without issues before `Files-cmm.159`:

```smalltalk
((FileDirectory on: '/'))
((FileDirectory on: '/') / 'tmp')
((FileDirectory on: '/') / 'tmp') pathName
```

Printing each line gives:

```
UnixFileDirectory on '/'
UnixFileDirectory on '/tmp'
'/tmp'
```

Since `Files-cmm.159` the last line fails, the output is then (with the last line being a signaled error):

```
UnixFileDirectory on '/'
a DirectoryEntryDirectory tmp
MessageNotUnderstood: DirectoryEntryDirectory>>pathName
```

Notes
(0014592)
TimNN   
07-28-16 10:14   
This seems to have been fixed by `Files-cmm.161`, so anyone with the privileges feel free to mark this as resolved (I don't seem to be able to do so myself).
(0014593)
TimNN   
07-28-16 10:25   
I retract my previous statement, this issue has only been fixed if the path (in this case `/tmp`) refers to a directory, if it refers to a file this still fails:

Printing each line for the file case before:

```
((FileDirectory on: '/tmp')) UnixFileDirectory on '/tmp'
((FileDirectory on: '/tmp') / 'any_file') UnixFileDirectory on '/tmp/any_file'
((FileDirectory on: '/tmp') / 'any_file') pathName '/tmp/any_file'
```

After:

```
((FileDirectory on: '/tmp')) UnixFileDirectory on '/tmp'
((FileDirectory on: '/tmp') / 'any_file') a DirectoryEntryFile any_file
((FileDirectory on: '/tmp') / 'any_file') pathName MessageNotUnderstood: DirectoryEntryFile>>pathName
```