Re: NSTask problems with the path
Re: NSTask problems with the path
- Subject: Re: NSTask problems with the path
- From: Pontus Ilbring <email@hidden>
- Date: Sat, 22 May 2004 13:24:55 +0200
On 2004-05-22, at 08.04, April Gendill wrote:
Ok, I'm trying to add a minor feature to an application, and to avoid
ripping my hair out trying to learn the gzip lib, I decided to try
nstask.of course first I have to tar folders so that they can be
gzipped. I'm stuck at tar right now. When I tar a folder and then
un-tar the folder I end up with a hierarchy of folders that mimics the
directory path to the original. now in the terminal if I cd to a
directory then tar something in it, I do not have this problem. I have
tried to use the nstask setdirectory call but that does nothing, so my
question is: Am I going to have to fudge this and run tcsh then write
the commands to it or is there a real way to get the directory to set
correctly?
I can't tell what you're doing wrong without looking at the code, but I
can guess. It sounds like you -do- set the working directory correctly,
but then pass the files to the tar program by absolute path rather than
by just filename.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.