Adding test whether the file directory exists when uncompressing file entry,if does not exist then create directory

There are not directory entry in some case.So we need to test whether the file directory exists when uncompressing file entry, if does not exist then create directory