[erlang-questions] documentation error in zip:list_dir() ?

Bengt Kleberg <>
Tue Nov 14 11:45:59 CET 2006


greetings

i think there is an error in the documentation of zip:list_dir( ). it says:

''The result value is the tuple {ok, List}, where List contains the zip 
archive comment as the first element. The rest is tuples: {filename(), 
fileinfo(), CompSize, Comment}, where CompSize is the compressed size of 
the file in the archive and Comment is the files comment.''

and this is what i get:
zip:list_dir( "a.zip").
{ok,[{zip_comment,[]},
      {zip_file,"afile",
                {file_info,16878,
                           regular,
                           read_write,
                           {{2006,11,13},{18,59,15}},
                           {{2006,11,13},{18,59,15}},
                           {{2006,11,13},{18,59,15}},
                           54,
                           1,
                           0,
                           0,
                           0,
                           0,
                           0},
                [],
                0,
                6843}]}


bengt
-- 
    EPO guidelines 1978: "If the contribution to the known art resides
    solely in a computer program then the subject matter is not
    patentable in whatever manner it may be presented in the claims."



More information about the erlang-questions mailing list