[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2716.0. "ZOO directory structure question" by LEVERS::PLOUFF (Glorious Blossoms -- Ah-ah-ah-choo!) Thu Jul 06 1989 16:50

    Here's a ZOO question.  My example is for VMS, but the same question
    applies to the Amiga version.
    
    I want to make ZOO store filenames with a shortened directory path.
    On my VMS account, I will unpack a Usenet posting in shar format
    in some subdirectory, and in doing so create yet another level of
    directories.   For example:
    
    	$set default [plouff.amiga.unpack]
    	$shar -u greatprogram.shr
    	[creating files in current directory]
    	[creates subdirectory [.doc] ]
    	[creates files in [.doc] ]
    
    Now, when creating a ZOO archive, I can use 
    
    	$zoo a greatprogram *.* [.doc]*.*
    
    but this gives me archive contents like
    
    	[plouff.amiga.unpack]greatprogram.c
    	[plouff.amiga.unpack]greatprogram.dat
	[plouff.amiga.unpack.doc]greatprogram.doc
    
    What I really would like is 
    
    	greatprogram.c
    	greatprogram.dat
    	[.doc]greatprogram.doc
    
    Any ideas on how to do that?  I haven't figured out how with either
    VMS ZOO v2.0 or Amiga ZOO v2.01.
    
    Wes
T.RTitleUserPersonal
Name
DateLines
2716.1MAybeWJG::GUINEAUThu Jul 06 1989 16:5610
ZOO probably expand's the file name ($parse system service).

Try using the [] form of directory.

	ZOO a greatprogram []files [.doc]files

This will probably do the same thing though. Maybe a concealed logical
to the root of your shar directory?

John
2716.2Well, I experimented...LEVERS::PLOUFFGlorious Blossoms -- Ah-ah-ah-choo!Fri Jul 07 1989 15:2213
    In the VMS version,
    
    	ZOO a archivename 	always stores full directory path
    	ZOO -add archive name	always stores flat file structure
    
    There is a "dot" option which unpacks everything to the current
    directory, but
    
    	ZOO a. archivename	generates an error message
    
    Any other suggestions?  This is frustrating!
    
    Wes
2716.3Get the ZOO source code and... :-)WJG::GUINEAUFri Jul 07 1989 17:560
2716.4 Better late than never CRISTA::CAPRICCIOSure looks like plant food t'meTue Nov 14 1989 03:1034
                Just add a ":" to the "a" (add) command, ie;

             $ zoo a: foo.zoo [.foofoo]one.file [-.two.file] ...

Zoo archiver, Version 2.01 (1988/08/25 12:43:57)
(C) Copyright 1988 Rahul Dhesi -- Noncommercial use permitted
Usage: zoo {acDeglLPTuUvx}[aAcCdEfInmMNoOpPqu1:/.@n] archive file
("zoo h" for help)

Choose a command from within {} and zero or more modifiers from within [].
E.g.:  `zoo a save /bin/*' will archive all files in /bin into save.zoo.
(Please see the user manual for a complete description of commands.)

 Commands in {} mean:         |Modifiers in [] mean:
  a     add files             | a     show archive name(s) in listing
  c     update comments       | A     apply g or c to archive
  D     delete stored files   | c     add/list comments
  e,x   extract files         | d     extract/list deleted files too
  g     adj. gen. limit/count | dd    extract/list only deleted files
  l,L,v,V list filenames      | E     erase backup after packing
  P     pack archive          | f     fast add (no compression) or list
  T     fix archive datestamp | M     move when adding (erase original)
  u     add only newer files  | n     add only files not already in archive
  U     undelete stored files | N     send extracted data to Neverland
 -----------------------------  O     don't ask "Overwrite?"
  q     be quiet                p     pipe extracted data to standard output
  :     don't store dir names   /,//  extract full pathnames
  .     pack to current dir     I     add filenames read from stdin
  C     show file CRC value     +/-   enable/disable generations
  S     overwrite newer files   g     list generation limits
  P     pack after adding       @n    start extract/list at position n

Novice usage:  zoo -cmd archive[.zoo] file...  where -cmd is one of these:
-add -extract -move -test -print -delete -list -update -freshen -comment