ilarischeinin / itmw

sync iTunes to cell phone or another portable device
MIT License
1 stars 2 forks source link

RFE: use 'cp -X' to transfer files #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since the destination filesystem doesn't support resource forks or extended 
attributes, it makes 
sense to tell cp to skip them via '-X' (per 'man cp').

In my command-line tests, this speeds up each copy by 500-ms or more (W810i via 
USB, OS X 
10.5.7). Over many files, this adds up.

I also tried rsync with various options, but it wasn't any faster than cp.

Original issue reported on code.google.com by michael....@gmail.com on 16 May 2009 at 7:33

GoogleCodeExporter commented 9 years ago
Thanks for the suggestion. I added this to svn.

Original comment by ilari.sc...@gmail.com on 17 May 2009 at 11:54

GoogleCodeExporter commented 9 years ago
cp on Tiger (10.4.11) does not have the -X option, so iTunesMyWalkman is 
currently
not working with my Tiger Macs (both PowerPC and Intel). The Console gives the
following error for each file that's supposed to be sync'ed:

2009-09-07 21:05:17.346 iTuneMyWalkman[439] "cp: illegal option -- X
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory"

so indeed it seems to be that '-X' that causes the problem.

So I'd suggest to make the '-X' dependent on the OS.

Original comment by chris.ko...@gmail.com on 7 Sep 2009 at 7:13