Author Michael.Felt
Recipients Michael.Felt, jkloth
Date 2018-09-17.12:16:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <ada9bf32-7002-28ac-f7a8-2cbaa3c380d3@felt.demon.nl>
In-reply-to <1537181275.78.0.956365154283.issue34711@psf.upfronthosting.co.za>
Content
On 17/09/2018 12:47, Jeremy Kloth wrote:
> Jeremy Kloth <jeremy.kloth+python-tracker@gmail.com> added the comment:
>
> This is also an issue on Windows when the target path resides within a junction, paths outside of a junction respond (err, fail) as expected.
>
> https://developercommunity.visualstudio.com/content/problem/272379/createfile-non-error-on-filename-with-trailing-bac.html
:) Glad to hear I am not the only one facing this. However, looking at
the standard - it looks like it may be "a bug". Not the easiest to read,
but my understanding of this leans to calling opening a file using
"/some/path/to/file/" is wrong:

[ENOTDIR]
    A component of the path prefix names an existing file that is
    neither a directory nor a symbolic link to a directory; or O_CREAT
    and O_EXCL are not specified, the /path/ argument contains at least
    one non- <slash> character and ends with one or more trailing
    <slash> characters, and the last pathname component names an
    existing file that is neither a directory nor a symbolic link to a
    directory; or O_DIRECTORY was specified and the /path/ argument
    resolves to a non-directory file.

from http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html

> ----------
> nosy: +jkloth
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue34711>
> _______________________________________
>
History
Date User Action Args
2018-09-17 12:16:04Michael.Feltsetrecipients: + Michael.Felt, jkloth
2018-09-17 12:16:04Michael.Feltlinkissue34711 messages
2018-09-17 12:16:04Michael.Feltcreate