Le 06/08/2014 22:12, Ben Finney a écrit :
You seem to be saying that ‘pathlib’ is not intended to be helpful for
constructing a shell command.
pathlib lets you do operations on paths. It also gives you a string
representation of the path that's expected to designate that path when
talking to
Antoine Pitrou writes:
> Le 06/08/2014 20:50, Alexander Belopolsky a écrit :
> > There are many interfaces where trailing slash is significant. […]
> > Loosing it when passing path strings through pathlib.Path() may be a
> > source of bugs.
>
> pathlib is generally concerned with filesystem opera
Le 06/08/2014 20:50, Alexander Belopolsky a écrit :
On Wed, Aug 6, 2014 at 8:11 PM, Antoine Pitrou mailto:anto...@python.org>> wrote:
Am I overlooking other cases?
There are many interfaces where trailing slash is significant. For
example, rsync uses trailing slash on the target directory
On Wed, Aug 6, 2014 at 8:11 PM, Antoine Pitrou wrote:
> Am I overlooking other cases?
There are many interfaces where trailing slash is significant. For
example, rsync uses trailing slash on the target directory to avoid
creating an additional directory level at the destination. Loosing it wh
Le 06/08/2014 18:36, Isaac Schwabacher a écrit :
If a symbolic link is encountered during pathname resolution, the
behavior shall depend on whether the pathname component is at the
end of the pathname and on the function being performed. If all of
the following are true, then pathname resolutio
pathlib.Path currently strips trailing slashes from pathnames, but this
behavior contradicts POSIX
(http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_12),
which specifies that the resolution of the pathname of a symbolic link to a
directory in the context of a funct