Re: Moving folders with content

2012-09-17 Thread Laszlo Nagy
On 2012-09-15 06:36, jyoun...@kc.rr.com wrote: Hello, I am working in both OS X Snow Leopard and Lion (10.6.8 and 10.7.4). I'm simply wanting to move folders (with their content) from various servers to the hard drive and then back to different directories on the servers. I want to be careful n

RE: Moving folders with content

2012-09-16 Thread jyoung79
Hi "Nobody" and Hans, I really appreciate you all sharing this insight with me. > You might think that os.path.expanduser > would never expand '~' to something containing a double quote, > but you'd be wrong: > >>> import os > >>> os.environ['HOME'] = 'gotcha!"; rm -rf ' > >>> print(os.path.expa

Re: Moving folders with content

2012-09-16 Thread Nobody
On Sun, 16 Sep 2012 12:40:18 +0200, Hans Mulder wrote: > But you should get into the habit of using shell=False whenever > possible, because it is much easier to get it right. More accurately, you should get into the habit of passing a list as the first argument, rather than a string. On Unix-li

Re: Moving folders with content

2012-09-16 Thread Hans Mulder
On 16/09/12 10:02:09, jyoun...@kc.rr.com wrote: > Thank you "Nobody" and Hans! You're welcome! >> You may want to use the subprocess module to run 'ditto'. If >> the destination folder does not exist, then ditto will copy MacOS >> specific aspects such as resource forks, ACLs and HFS meta-data.

RE: Moving folders with content

2012-09-16 Thread jyoung79
Thank you "Nobody" and Hans! > You may want to use the subprocess module to run 'ditto'. If > the destination folder does not exist, then ditto will copy MacOS > specific aspects such as resource forks, ACLs and HFS meta-data. This looks like a good direction to go. Maybe something like: >>>

Re: Moving folders with content

2012-09-15 Thread Hans Mulder
On 15/09/12 10:00:16, Nobody wrote: > On Sat, 15 Sep 2012 04:36:00 +, jyoung79 wrote: > >> I am working in both OS X Snow Leopard and Lion (10.6.8 and 10.7.4). >> I'm simply wanting to move folders (with their content) from various >> servers to the hard drive and then back to different dir

Re: Moving folders with content

2012-09-15 Thread Nobody
On Sat, 15 Sep 2012 04:36:00 +, jyoung79 wrote: > I am working in both OS X Snow Leopard and Lion (10.6.8 and 10.7.4). > I'm simply wanting to move folders (with their content) from various > servers to the hard drive and then back to different directories on the > servers. > > I want to

Moving folders with content

2012-09-14 Thread jyoung79
Hello, I am working in both OS X Snow Leopard and Lion (10.6.8 and 10.7.4). I'm simply wanting to move folders (with their content) from various servers to the hard drive and then back to different directories on the servers. I want to be careful not to remove any metadata or resource forks f