[plt-scheme] Explode-path and normalized file paths

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sat Sep 23 18:45:41 EDT 2006

Here is a fun error message:

  exception raised by exception handler:
     continuation application: attempted to cross a continuation barrier;
  original exception raised: explode-path: expects argument of type
  <path in normal form>; given

Is it correct to assume that this means, the path


is normalized on Windows, but not on Linux?

And if so, is there another robust way to split the path?

I need it in this context:

   (define (document-number->url index d)
       [(document-number->source-path index d)
        => (lambda (full-path)
             (apply string-append
                    (intersperse "/"
                                 (map path->string
                                      (cddddr (explode-path

Jens Axel Søgaard

Posted on the users mailing list.