Issue 6283 in pharo: Root paths not properly recognized under windows

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

Issue 6283 in pharo: Root paths not properly recognized under windows

pharo
Status: Accepted
Owner: ----
Labels: Milestone-2.0 Type-Bug

New issue 6283 by [hidden email]: Root paths not properly recognized  
under windows
http://code.google.com/p/pharo/issues/detail?id=6283

Under Windows the following code fails:
     (FileSystem disk referenceTo: 'c:\') isRoot



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6283 in pharo: Root paths not properly recognized under windows

pharo

Comment #1 on issue 6283 by [hidden email]: Root paths not properly  
recognized under windows
http://code.google.com/p/pharo/issues/detail?id=6283

Apparently FS is modelled a bit differently.

      FileSystem disk root children
will return the drive letters. Whereas
     FIleSystem disk referenceTo: '/'
returns a relative path to the current working directory under windows.

I am not sure if the second thing really makes sense


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6283 in pharo: Root paths not properly recognized under windows

pharo
Updates:
        Labels: Target-Filesystem

Comment #2 on issue 6283 by [hidden email]: Root paths not properly  
recognized under windows
http://code.google.com/p/pharo/issues/detail?id=6283

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6283 in pharo: Root paths not properly recognized under windows

pharo

Comment #3 on issue 6283 by [hidden email]: Root paths not properly  
recognized under windows
http://code.google.com/p/pharo/issues/detail?id=6283

I would expect FileSystem disk referenceTo: '/'
to return to root directory of the current working directory.

Just to confirm, on windows I would not expect '/' to never be a relative  
reference.  It should always be the root directory of whatever the drive is  
of the current working directory. The conventions of the CMD prompt should  
be the default behaviour (but I haven't considered where this might clash  
with Posix systems)

Just to review the obvious, 'multiple root directories'  
http://en.wikipedia.org/wiki/Root_directory

and considering this sample...
(1) C:\Users\Ben> cd \
(2) C:\> f:
(3) F:\> c:
(4) C:\> cd f:\BACKUP
(5) C:\> f:
(6) F:\BACKUP>

Note how step 4 does not change the current working directory but the  
working of the other  drive.  Each drive keeps track of its own working  
directory.

Note also in step 5 how F: is not a root directory, but a command to change  
to a different drive which maintained its own working directory.  Since  
Posix machines don't have multiple roots, perhaps this behaviour won't  
conflict.

Perhaps also drive letters might be treated similar to UNC share part of a  
UNX path (not sure if FileSystem already handles these?)
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365530(v=vs.85).aspx


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6283 in pharo: Root paths not properly recognized under windows

pharo
Updates:
        Status: WorkNeeded-Conclusion

Comment #4 on issue 6283 by [hidden email]: Root paths not properly  
recognized under windows
http://code.google.com/p/pharo/issues/detail?id=6283

thanks for looking into it.

Windows just behaves strange in that matter. So that's why FileSystem  
treats windows with a single root entry point having the drives attached to  
it.

Also keeping track of the different working directories is a bit strange  
(for my unix/mac poisoned/enlightened mind).


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6283 in pharo: Root paths not properly recognized under windows

pharo

Comment #5 on issue 6283 by [hidden email]: Root paths not properly  
recognized under windows
http://code.google.com/p/pharo/issues/detail?id=6283

Is this a show stopping bug for 2.0?


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6283 in pharo: Root paths not properly recognized under windows

pharo
Updates:
        Labels: -Milestone-2.0 Milestone-3.0

Comment #6 on issue 6283 by [hidden email]: Root paths not properly  
recognized under windows
http://code.google.com/p/pharo/issues/detail?id=6283

I wouldn't say so...


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