Simply try to decompress each file that is a archive file recursivly
Code:
function decompress --> given attributes: filename
o decompress file
o check the type of each file that has been decompressed
o if it is ".rar" or whatever so call the function decompress with this filename