FogBugz (Case [Issue]20189) File System - FileReference>>= considers same file different

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FogBugz (Case [Issue]20189) File System - FileReference>>= considers same file different

Pharo Issue Tracker
FogBugz Notification
avatar
Alistair Grant revised a previous entry on Case 20189: FileReference>>= considers same file different:
Bug in Project:  File System: 1. Pharo Image  •  You are subscribed to this case
FileReference>>= currently performs a simplistic path comparison to
determine if two FileReferences are the same.

This means that an absolute reference and a relative reference to the
same file will be flagged as different files.

The (soon to be supplied) Pull Request modifies FileReference>>= to
resolv mak e the paths absolute as part of the comparison, causing the two
FileReferences to be considered equal.

As an example, in the existing Pharo6:

| f1 f2 |

f1 := FileLocator workingDirectory / 'pharo-local'.
f2 := f1 asAbsolute.
f1 = f2
" false"

The patched system will answer true.

Cheers,
Alistair

Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want FogBugz notifications anymore? Update your preferences.

FogBugz

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker