Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44900
| Date | 2013-05-07 14:58 -0500 |
|---|---|
| From | Andrew Berg <bahamutzero8825@gmail.com> |
| Subject | Making safe file names |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1418.1367956750.3114.python-list@python.org> (permalink) |
Currently, I keep Last.fm artist data caches to avoid unnecessary API calls and have been naming the files using the artist name. However, artist names can have characters that are not allowed in file names for most file systems (e.g., C/A/T has forward slashes). Are there any recommended strategies for naming such files while avoiding conflicts (I wouldn't want to run into problems for an artist named C-A-T or CAT, for example)? I'd like to make the files easily identifiable, and there really are no limits on what characters can be in an artist name. -- CPython 3.3.1 | Windows NT 6.2.9200 / FreeBSD 9.1
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Making safe file names Andrew Berg <bahamutzero8825@gmail.com> - 2013-05-07 14:58 -0500
Re: Making safe file names jt@toerring.de (Jens Thoms Toerring) - 2013-05-07 22:37 +0000
Re: Making safe file names Andrew Berg <bahamutzero8825@gmail.com> - 2013-05-07 18:30 -0500
csiph-web