[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange Scheme problem
From: |
Menu Jacques |
Subject: |
Re: Strange Scheme problem |
Date: |
Wed, 18 Nov 2015 09:51:20 +0100 |
Hi Andrew,
The definitions I use actually is:
#(define comml (object->string (command-line)))
#(define loc (+ (string-rindex comml #\space ) 2))
#(define commllen (- (string-length comml) 2))
#(define filen (substring comml loc commllen))
#(define siz (object->string (stat:size (stat filen))))
Need to analyze what happens in detail to loc and commllen when there are
spaces in the directory name.
JM
> Le 18 nov. 2015 à 01:46, Andrew Bernard <address@hidden> a écrit :
>
> Hi Jacques,
>
> Using this function:
>
> (define (file-size f)
> (stat:size (stat f)))
>
> with guile 1.8 you can stat files with spaces in the directory path and the
> file name part just fine.
>
> Andrew
>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
- Strange Scheme problem, Menu Jacques, 2015/11/17
- Re: Strange Scheme problem, Gilles THIBAULT, 2015/11/17
- Re: Strange Scheme problem, Menu Jacques, 2015/11/17
- Re: Strange Scheme problem, Andrew Bernard, 2015/11/17
- Re: Strange Scheme problem,
Menu Jacques <=
- Re: Strange Scheme problem, David Kastrup, 2015/11/18
- Re: Strange Scheme problem, Menu Jacques, 2015/11/18
- Re: Strange Scheme problem, Andrew Bernard, 2015/11/18
- Re: Strange Scheme problem, Menu Jacques, 2015/11/18
- Re: Strange Scheme problem, Ralf Mattes, 2015/11/18
- Re: Strange Scheme problem, Andrew Bernard, 2015/11/18
- Re: Strange Scheme problem, David Kastrup, 2015/11/19
Re: Strange Scheme problem, Andrew Bernard, 2015/11/17