[Seaside] File Directory error (Pharo 1.2.1)

Philippe Marschall philippe.marschall at gmail.com
Mon Jul 11 18:35:22 UTC 2011


2011/7/11 dtrussardi at tiscali.it <dtrussardi at tiscali.it>:
> My environment is based on Pharo 1-0 and Seaside 3.0.0-alpha5.15,  run on
> MacBook.
> When i work with File Library   addAllFilesIn: addFileAt: methods
> the system erase the error:
> MessageNotUnderstood: receiver of "binary" is nil
> Relative specific method is
> contentsOfFile: aString binary: aBoolean | stream | stream := aBoolean
> ifTrue: [ (FileDirectory default oldFileNamed: aString) binary; yourself ]
> ifFalse: [ (MultiByteFileStream oldFileNamed: aString) ascii;
> wantsLineEndConversion: true; yourself ]. ^[ stream contents ] ensure: [
> stream close ].
>
> I think is the same problem relative to FileDirectory .
> Any idea for  solve the problem ?

Can you experiment at bit? If you do
FileDirectory default oldFileNamed: aString
what do you get? Does the file actually exist?

Cheers
Philippe


More information about the seaside mailing list