Re: [Pharo-users] Working with zipped files

2014-12-10 Thread Markus Fritsche
On 2014-12-10 01:23, Юрий Мироненко wrote: General idea was to use ZipArchive instead of MCZ-related code. Sorry, I wasn't clear. MCZ was just my example. The real question was, if the ZipFileSystem API can be used or not... I will go with ZipArchive and friends then.

Re: [Pharo-users] Working with zipped files

2014-12-10 Thread Markus Fritsche
On 2014-12-09 20:47, Hernán Morales Durand wrote: | zipArchive fileRef | zipArchive := ZipArchive new. fileRef := 'myFile.zip' asFileReference. [ zipArchive readFrom: fileRef fullName; extractAllTo: FileSystem workingDirectory ] ensure: [ zipArchive close ]. Thank you!

Re: [Pharo-users] Working with zipped files

2014-12-09 Thread Юрий Мироненко
General idea was to use ZipArchive instead of MCZ-related code. If above code fail to work for you, why not publish the file we are talking about? The it will be possible to test the code you are asking for. 2014-12-09 21:03 GMT+03:00 Markus Fritsche : > On 2014-12-09 18:19, Юрий Мироненко wro

Re: [Pharo-users] Working with zipped files

2014-12-09 Thread Hernán Morales Durand
| zipArchive fileRef | zipArchive := ZipArchive new. fileRef := 'myFile.zip' asFileReference. [ zipArchive readFrom: fileRef fullName; extractAllTo: FileSystem workingDirectory ] ensure: [ zipArchive close ]. 2014-12-09 15:03 GMT-03:00 Markus Fritsche : > On 2014-12-09 18:19, Юрий Мироненко w

Re: [Pharo-users] Working with zipped files

2014-12-09 Thread Markus Fritsche
On 2014-12-09 18:19, Юрий Мироненко wrote: Do you want to work with ZIP files, or specifically with MCZ ? Just a zip file with a member called project.xml which I want to extract, change and rezip... Best regards, Markus

Re: [Pharo-users] Working with zipped files

2014-12-09 Thread Юрий Мироненко
Do you want to work with ZIP files, or specifically with MCZ ? 2014-12-09 15:03 GMT+03:00 Markus Fritsche : > Hi, > > by peeking around in "Deep into Pharo" I thought that > > | zf fr | > fr := 'I:\SAS_Projekte\project.egp' asFileReference. > zf := FileSystem zip: fr. > zf store open. > > should

[Pharo-users] Working with zipped files

2014-12-09 Thread Markus Fritsche
Hi, by peeking around in "Deep into Pharo" I thought that | zf fr | fr := 'I:\SAS_Projekte\project.egp' asFileReference. zf := FileSystem zip: fr. zf store open. should be used to open a zip file programmatically. That fails with "ZnInvalidUTF8: Invalid utf8 input detected" Looking at MCMczRe