Normal-case-path?
On Thursday, October 21, 2010, Danny Yoo d...@cs.wpi.edu wrote:
On Thu, Oct 21, 2010 at 11:23 AM, scouic sco...@gmail.com wrote:
Hi,
i think that the problem is the \ character, because this works :
#lang racket
(equal? (regexp-replace* (path-string (build-path C:\\))
On Wed, Oct 20, 2010 at 7:20 PM, Danny Yoo d...@cs.wpi.edu wrote:
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.
5 minutes ago, Joe Marshall wrote:
On Wed, Oct 20, 2010 at 7:20 PM, Danny Yoo d...@cs.wpi.edu wrote:
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:\\)
BTW, the relevant racket function for the first part is
`file-or-directory-identity'.
Ah! This is exactly what I need! Thanks!
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
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
Four minutes ago, Danny Yoo wrote:
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
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?
IIRC, there
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 10/20/2010 08:38 PM, Danny Yoo wrote:
Yikes. Ok, is there a way to tell if a filesystem root is
case-sensitive or not?
Use a POSIX compatible operating system. Bam, your filesystem root is
case-sensitive.
-BEGIN PGP SIGNATURE-
Version:
On Wed, Oct 20, 2010 at 8:38 PM, Danny Yoo d...@cs.wpi.edu wrote:
IIRC, there was no right way -- I think that on windows you can have
some drives be case-sensitive and some are not.
Yikes. Ok, is there a way to tell if a filesystem root is
case-sensitive or not?
I am not aware of