This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mdk
Recipients cedricvanrompay, matrixise, mdk, serhiy.storchaka, vstinner, xtreak
Date 2018-11-12.21:51:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542059468.41.0.788709270274.issue35216@psf.upfronthosting.co.za>
In-reply-to
Content
Using `cp` on Debian Buster I'm having a better error message:

    $ touch foo
    $ cp foo bar/
    cp: failed to access 'bar/': Not a directory

From copy.c (from Debian coreutils):

    /* Improve quality of diagnostic when a nonexistent dst_name
       ends in a slash and open fails with errno == EISDIR.  */
    if (dest_desc < 0 && dest_errno == EISDIR
        && *dst_name && dst_name[strlen (dst_name) - 1] == '/')
      dest_errno = ENOTDIR;
History
Date User Action Args
2018-11-12 21:51:08mdksetrecipients: + mdk, vstinner, serhiy.storchaka, matrixise, xtreak, cedricvanrompay
2018-11-12 21:51:08mdksetmessageid: <1542059468.41.0.788709270274.issue35216@psf.upfronthosting.co.za>
2018-11-12 21:51:08mdklinkissue35216 messages
2018-11-12 21:51:08mdkcreate