[issue34186] [3.6.6 on macOS] os.listdir replacing "/" with ":"

2018-07-22 Thread Todd

Todd  added the comment:

Ah, thank you for the link. I looked for something like that, but I obviously 
didn’t use the right wording while searching. 

Sorry for the false report and thanks for the quick help.

-Todd

Sent from my iPhone

> On Jul 21, 2018, at 10:10 PM, Zachary Ware  wrote:
> 
> 
> Zachary Ware  added the comment:
> 
> That's nothing to do with Python and everything to do with macOS.  As a test, 
> open Terminal, do `ls ~/Example`, and you'll see `AC:DC` instead of `AC/DC`.  
> As a further test, do `mkdir ~/Example/dir:with:colons` and then have a look 
> in Finder.
> 
> See here [1] for more information.
> 
> [1] 
> https://apple.stackexchange.com/questions/173529/when-did-the-colon-character-become-an-allowed-character-in-the-filesystem
> 
> --
> nosy: +zach.ware
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34186] [3.6.6 on macOS] os.listdir replacing "/" with ":"

2018-07-21 Thread Zachary Ware


Zachary Ware  added the comment:

That's nothing to do with Python and everything to do with macOS.  As a test, 
open Terminal, do `ls ~/Example`, and you'll see `AC:DC` instead of `AC/DC`.  
As a further test, do `mkdir ~/Example/dir:with:colons` and then have a look in 
Finder.

See here [1] for more information.

[1] 
https://apple.stackexchange.com/questions/173529/when-did-the-colon-character-become-an-allowed-character-in-the-filesystem

--
nosy: +zach.ware
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34186] [3.6.6 on macOS] os.listdir replacing "/" with ":"

2018-07-21 Thread Todd


New submission from Todd :

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: coleman4...@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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com