Status: Accepted
Owner:
[hidden email]
Labels: Type-Bug Milestone-2.0
New issue 6137 by
[hidden email]: AbsolutePath not absolute on Windows
http://code.google.com/p/pharo/issues/detail?id=6137(AbsolutePath from: 'c:\test.txt') class
returns RelativePath on Windows instead of AbsolutePath. This is clearly
a bug and was introduced with "FileSystem-Core-StephaneDucasse.14.mcz"
Therefore please add these two test case methods to class PathTest
testUnixAbsolutePathName
self assert: (Path from: '/test') isAbsolute
testWindowsAbsolutePathName
self assert: (Path from: 'c:\test') isAbsolute
and you will see that the last one is red and has to be fixed.
The problem is the method Path>>from:delimiter where class AbsolutePath
is only used when the path string starts with "/".
This is true for Unix but NOT FOR WINDOWS path names.
So currently it returns RelativePath but "C:\test" is not a relative
path on Windows.
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker