[Python-ideas] Re: Add symlinks option at shutil.move parameters

2019-12-24 Thread python-ideas--- via Python-ideas
Well, I suppose it wants simlink=False. Anyway, why not change the signature of move to def move(src, dst, **kwargs): and change the call of copytree to copytree(src, real_dst, **kwargs) ? ___ Python-ideas mailing list -- python-ideas@python.org To

[Python-ideas] Re: Add symlinks option at shutil.move parameters

2019-12-20 Thread Guido van Rossum
Well, I should have read the source instead of the docs. :-( Contrary to what I thought, move() always preserves symlinks. Let's stop second-guessing until the OP responds. On Fri, Dec 20, 2019 at 11:43 Random832 wrote: > On Thu, Dec 19, 2019, at 17:43, Guido van Rossum wrote: > > A quick look

[Python-ideas] Re: Add symlinks option at shutil.move parameters

2019-12-20 Thread Random832
On Thu, Dec 19, 2019, at 17:43, Guido van Rossum wrote: > A quick look at the docs > shows what > the OP is likely after. > > The function has this signature: > > `shutil.``move`(*src*, *dst*, *copy_function=copy2*)¶ >

[Python-ideas] Re: Add symlinks option at shutil.move parameters

2019-12-19 Thread Guido van Rossum
A quick look at the docs shows what the OP is likely after. The function has this signature: shutil.move(*src*, *dst*, *copy_function=copy2*)¶ The copy_function argument is a

[Python-ideas] Re: Add symlinks option at shutil.move parameters

2019-12-19 Thread Steven D'Aprano
On Wed, Dec 18, 2019 at 01:48:22PM -, Namjun Kim wrote: > I think shutil.move method should provide a symlinks parameter. What will it do? What behaviour will it change? Please be precise: what values does the parameter take, what is the default (if any), what effect does it have. You have

[Python-ideas] Re: Add symlinks option at shutil.move parameters

2019-12-18 Thread Andrew Barnert via Python-ideas
On Dec 18, 2019, at 05:53, Namjun Kim wrote: > > I think shutil.move method should provide a symlinks parameter. > It's because if user wants to move file including metadata couldn't use > shutil.move method. What behavior are you looking for if the user provides symlinks=False? Is the idea

[Python-ideas] Re: Add symlinks option at shutil.move parameters

2019-12-18 Thread Namjun Kim
Sorry, the thread had been duplicated. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at