Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6: Create a new Service to 'tar' directories or files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Create a new Service to 'tar' directories or files
Authored by: FiXato on Jan 06, '12 06:56:34PM

Just noticed a minor flaw in the original code (and thus my versions too): If you select files that don't have a common directory, the action fails.
Probably because it `cd`s to the dir of the first file, and then tar fails because it can't find all files in that directory.

I have a version that works around this, but then you get full paths, which clearly isn't really what one wants either..
Maybe copying to a temp directory would work, but then you are kinda screwed if it concerns big files/directories.



[ Reply to This | # ]