Hi, i think that the problem is the \ character, because this works : #lang racket (equal? (regexp-replace* "\\\\" (path->string (build-path "C:\\")) "/") (regexp-replace* "\\\\" (path->string (build-path "C:\\")) "/"))
and returns true have a nice day, -mw 2010/10/21 Danny Yoo <d...@cs.wpi.edu> > I'm trying to compare two paths for equality; I misread normalize-path > and didn't realize that it does not do case folding, so that on > Windows, > > (equal? (build-path "C:\\") > (build-path "c:\\")) > > returns false. What's the right way to compare paths for equality? > > As a related question, what's the right way to see if one directory is > a subdirectory of another? > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users > -- -------------------------------------------------------- site : http://scouic.com --------------------------------------------------------
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users