0

I am trying to Unarchive the Lzip file so using NSTask to achieve it [task setArguments:@[@"-k",@"-d",source,destination]]; these are the arguments which i was passing but extraction always happens in source path folder .

Any suggestions ?

Thanks in advance !!

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
osxDev123
  • 21
  • 4

1 Answers1

0

After some Research i come up with the solution

[task setArguments:[NSArray arrayWithObjects:@"-k",@"-d", source,@"-O", destination, nil]];

-k keep (don't delete) input files.

-d decompress.

-O if reading standard input, write to file.

osxDev123
  • 21
  • 4