Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??
I'm not sure if this is even possible, but this is the best forum I could think to ask my question in. I am developing a document library complete with checkin/checkout services and archiving capabilities. The archives are where I am having the most dificulty.

The archive directory structure is set up such that it is a mirror image of the active document structure (files are grouped based on logical business rules) with the exception being that the document name is a directory and not a file in the archive directory. In the archive branch files are stored in .tar.gz format with a version number (<doc name>.<version number>.tar.gz) under the document name directory. This is done so that the user can have quick and direct access to any archive whether they walk down the directory tree to find the file or if they find the file via keyword search.

Now that background has been covered I have a question. Is it possible to have this system set up so that the archive files display as a list of links to the specific .tar.gz files AND to untar/uncompress the files in place so that they can be served as normal docs.

Help and links to help are gratefully accepted.

In reply to Need help with serving .tar.gz files by spork

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.