[issue34186] [3.6.6 on macOS] os.listdir replacing "/" with ":"
Todd
report at bugs.python.org
Sat Jul 21 22:36:57 EDT 2018
New submission from Todd <coleman45.1 at hotmail.com>:
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 ":".
----------
components: macOS
files: Screen Shot 2018-07-21 at 9.29.59 PM.png
messages: 322128
nosy: coleman45.1 at hotmail.com, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: [3.6.6 on macOS] os.listdir replacing "/" with ":"
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file47708/Screen Shot 2018-07-21 at 9.29.59 PM.png
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34186>
_______________________________________
More information about the Python-bugs-list
mailing list