Author coleman45.1@hotmail.com
Recipients coleman45.1@hotmail.com, ned.deily, ronaldoussoren
Date 2018-07-22.02:36:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532227017.3.0.56676864532.issue34186@psf.upfronthosting.co.za>
In-reply-to
Content
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 ":".
History
Date User Action Args
2018-07-22 02:36:57coleman45.1@hotmail.comsetrecipients: + coleman45.1@hotmail.com, ronaldoussoren, ned.deily
2018-07-22 02:36:57coleman45.1@hotmail.comsetmessageid: <1532227017.3.0.56676864532.issue34186@psf.upfronthosting.co.za>
2018-07-22 02:36:57coleman45.1@hotmail.comlinkissue34186 messages
2018-07-22 02:36:55coleman45.1@hotmail.comcreate