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
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
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
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.
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:
>>>
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
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
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