Recreate a hierarchy

2011-05-05 Thread Steffen
Hello, I'm trying to come up with a way to recreate a directory hierarchy. Entries within zip archives are just flat strings like top/level/file1, but I would like to operate on them hierarchically. So my problem could be stated as: If (restore-hierarchy [[top level file1] [top level file2

Re: Recreate a hierarchy

2011-05-05 Thread Jonathan Fischer Friberg
, I'm trying to come up with a way to recreate a directory hierarchy. Entries within zip archives are just flat strings like top/level/file1, but I would like to operate on them hierarchically. So my problem could be stated as: If (restore-hierarchy [[top level file1] [top level file2] [top

Re: Recreate a hierarchy

2011-05-05 Thread Juha Arpiainen
{level2 [file3], level [file1 file2]}} -- Juha Arpiainen On May 5, 3:40 pm, Steffen steffen.die...@gmail.com wrote: Hello, I'm trying to come up with a way to recreate a directory hierarchy. Entries within zip archives are just flat strings like top/level/file1, but I would like to operate

Re: Recreate a hierarchy

2011-05-05 Thread Ambrose Bonnaire-Sergeant
up with a way to recreate a directory hierarchy. Entries within zip archives are just flat strings like top/level/file1, but I would like to operate on them hierarchically. So my problem could be stated as: If (restore-hierarchy [[top level file1] [top level file2] [top level2

Aw: Re: Recreate a hierarchy

2011-05-05 Thread Steffen
Am Donnerstag, 5. Mai 2011 16:06:52 UTC+2 schrieb odyssomay: This is my take on this: http://gist.github.com/957028 The second file produces the correct result. The result isn't exactly like you asked for. This is because it wouldn't support files that isn't in the lowest level. Your are

Re: Recreate a hierarchy

2011-05-05 Thread Timo Mihaljov
On Thu, May 05, 2011 at 05:40:02AM -0700, Steffen wrote: Hello, I'm trying to come up with a way to recreate a directory hierarchy. Entries within zip archives are just flat strings like top/level/file1, but I would like to operate on them hierarchically. So my problem could be stated