[BUG][FIX][TEST] DosFileDirectory>>splitName:to:

Andreas Raab andreas.raab at gmx.de
Sat Mar 6 03:21:40 UTC 2004


"Change Set:  DosFileDirFixes
Date:   6 March 2004
Author:   Andreas Raab

Some recent changes exposed a significant bug in DosFileDirectory's
splitName:to: handling. Since conceptually, all of the 'drives' (e.g., the
roots of the Win32 file system) are seen as hanging off the empty path
(FileDirectory root) even a 'drive' must be split accordingly to a
(non-empty) local name and the (empty) root path. Please note that the
comment from update 5179sendersOfSplitName-asm claiming:

 On Windows this must be true
 FileDirectory basicNew fileOrDirectoryExists: 'C:'

is wrong. 'FileDirectory basicNew' creates an *uninitialized* directory
rather than the virtual root of the file system, so the above query must
raise an error. What must be true on Windows is:

 FileDirectory root fileOrDirectoryExists: 'C:'.

The change set fixes the issue, adds a comment explaining why this relation
is important and provides some tests which should make the currently broken
behavior abundantly clear (the tests need to be run on Windows to see the
effect).
"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DosFileDirFixes.3.cs
Type: application/octet-stream
Size: 6318 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040306/6c963f01/DosFileDirFixes.3.obj


More information about the Squeak-dev mailing list