0

How do I can check an input file is compressed (ZIP) or not ?.

Is the solution to read the file info using "Get File Names" step and check the extension field ?

Hari
  • 397
  • 1
  • 9
  • 23
  • 2
    No. You identity files by their Magic Number, their first few bytes: http://www.garykessler.net/library/file_sigs.html – dcaswell Sep 06 '13 at 06:22

1 Answers1

0
  1. Use the "file" command if you're on Unix.
  2. If not install cygwin and goto 1.

If this is related to your other question about conditionally reading different files then I would consider getting your files into a consistent format first. i.e. all compressed.

Codek
  • 5,114
  • 3
  • 24
  • 38