Next: , Up: progutils   [Index]


8.1 Processing file pathnames

The following bindings are exported by the library (vicare libraries).

Function: program-source-pathname->program-binary-pathname source-pathname

Given a string representing the pathname of a Scheme program: build and return the pathname of the corresponding compiled program.

If source-pathname has file extension .sps: strip such extension; otherwise append the extension .fasl.

(program-source-pathname->program-binary-pathname
   "demo.sps")
⇒ "demo"

(program-source-pathname->program-binary-pathname
   "tests/demo.sps")
⇒ "tests/demo"

(program-source-pathname->program-binary-pathname
   "demo.ciao")
⇒ "demo.ciao.fasl"

(program-source-pathname->program-binary-pathname
   "tests/demo.ciao")
⇒ "tests/demo.ciao.fasl"