On Dec 18, 2019, at 05:53, Namjun Kim <bunseok...@gmail.com> 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 that the symlinks will be moved as-is if rename on the file or a 
parent directory works, but converted into copies if rename fails (because of a 
cross-filesystem move)? If so, that seems trivial to implement (just add a 
symlinks parameter and pass it through to copyfiles). But I don’t get when it 
would ever be useful.

If the idea is something different (e.g., symlinks always get copied, even if 
you could have renamed them, even if you normally would have renamed an 
ancestor directory and never even recursed this far), you need to explain 
exactly what the behavior is.

Does GNU or BSD mv provide an option for what you want?

What’s your use case for wanting to do this?
_______________________________________________
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 
https://mail.python.org/archives/list/python-ideas@python.org/message/34CMLON54RZPVQJB7EWQPC2CKETHXDWQ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to