X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05 Mar 2015 06:54 AM by  anon
FILE_UNTAR with /LIST option
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
05 Mar 2015 06:54 AM
    Hello, I am trying to use the FILE_UNTAR command on a tar.gz file with the /LIST option, in order to obtain the list of directories and files within the tar.gz file without untarring it. I have tried the following syntax FILE_UNTAR, tar_file, FILES = file_list, /LIST where tar_file is the .tar.gz file I would like to inspect and file_list is the variable where I would like to store the list of files in the .tar.gz file. However, I get the following error message FILE_UNTAR: FILE_BASENAME: String expression required in this context: OUTDIR. I have then tried to run the command with the /DEBUG option and I have seen that the error occurs at line 220 of file_untar.pro. Anyway, if I look at the source code of file_untar it seems to me that the variable "outdir" is given a value only if the /LIST option is not active, so it seems to me that that line of code will always complain as long as the /LIST option is used. Or am I missing something? How can I escape from this problem?

    Deleted User



    New Member


    Posts:21
    New Member


    --
    09 Mar 2015 02:23 PM
    This is a bug. I just fixed it for the next release. In the meantime, you could either do a "gunzip" on the TAR file first, or you could hack your file_untar.pro and simply remove the "if (~doList)..." and "endif" lines. Cheers, Chris
    You are not authorized to post a reply.