Hello, Keith Hodges a écrit :
The src directory I use containts jpeg file. addTree fails because FileKernel use a FileJpeg in InputStream and there is a input pb on this file. an input what?
UTF8TextConverter(Object)>>error:'Invalid utf8 input detected' In fact, there is nothing to deal with FileJpeg, File make the same error on my image (Exupery with Pharo on Windows).
I try to add binary mode : base binary addTree: dest.
Files from base are not copy in binary mode.
addTree collect files/dirs to copy but dot not transmit the binary flag. Is it normal ? Directory home binary files first isBinary ==> false ! Should it be true ?
copyLocalFile:toLocalFile: chooses from a variety of copying methods I understand that there is a bug here
Not sure that the pb is here. I think it is in #entries (or #files,...) method that collect files from source dir without reporting binary mode from parent. Peharps, #select: should do the job ?
but I am not really sure what the problem is with the jpeg file.
Rigth, the pb is not with jpeg but with copy mode that not transmit. However, here is a suggestion: FileKernel>>entries is defined as self select: [:e | true ] a block that only return true is strnage for me. Why not #contentsIn: in executive that return all entries (like contents in Collection) ? a+ Vicnet