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.

Recipients, ned.deily, ronaldoussoren
Date 2018-07-22.02:36:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Short back story - I am organizing music where "/" appears in a lot a metadata for the songs. For instance, the artist "AC/DC" or "ACDC w/ Axl Rose". On macOS, it is acceptable to name a folder "AC/DC" while the slash would cause an issue in Windows.

Issue - While using os.listdir to list a number of artist folders inside my iTunes music folder os.listdir replaced "/" with ":" IF the "/" appears in the name itself. It does not replace the slash delimiters. 

I have included a screen shot. On the right side of the image is an example directory I made with a few folders. Two of the folders have "/" in their names.  On the left side of the image is the Python shell showing the use of os.listdir along with the output. You'll notice that the listed directories don't include "/", but instead include ":".
Date User Action Args
2018-07-22 02:36:57coleman45.1@hotmail.comsetrecipients: +, ronaldoussoren, ned.deily
2018-07-22 02:36:57coleman45.1@hotmail.comsetmessageid: <>
2018-07-22 02:36:57coleman45.1@hotmail.comlinkissue34186 messages
2018-07-22 02:36:55coleman45.1@hotmail.comcreate