Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'encoding': 0.05; 'cache': 0.07; 'subject:file': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'satisfy': 0.09; 'bug': 0.12; 'base64': 0.16; 'mangled': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'artist': 0.24; 'url:home': 0.24; 'gets': 0.27; 'header:X-Complaints-To:1': 0.27; 'idea': 0.28; 'andrew': 0.30; 'code': 0.31; 'file': 0.32; 'figure': 0.32; 'noticed': 0.34; 'etc.)': 0.35; 'but': 0.35; '(e.g.,': 0.36; 'doing': 0.36; 'charset:us-ascii': 0.36; 'wrong': 0.37; 'received:76': 0.38; 'mapping': 0.38; 'needed': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'delete': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'either': 0.39; 'received:org': 0.40; 'manually': 0.60; 'entire': 0.61; "you've": 0.63; 'show': 0.63; 'name': 0.63; 'physical': 0.72; 'music': 0.75; 'messed': 0.84; 'subject:Making': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Making safe file names Date: Wed, 08 May 2013 19:37:36 -0400 Organization: > Bestiaria Support Staff < References: <51895D03.4000300@gmail.com> <518989E1.8010701@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-253-111-239.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1368056269 news.xs4all.nl 15912 [2001:888:2000:d::a6]:50249 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44974 On Tue, 07 May 2013 18:10:25 -0500, Andrew Berg declaimed the following in gmane.comp.python.general: > None of these would work because I would have no idea which file stores data for which artist without writing code to figure it out. If I > were to end up writing a bug that messed up a few of my cache files and noticed it with a specific artist (e.g., doing a "now playing" and > seeing the wrong tags), I would either have to manually match up the hash or base64 encoding in order to delete just that file so that it > gets regenerated or nuke and regenerate my entire cache. > And now you've seen why music players don't show the user the physical file name, but maintain a database mapping the internal data (name, artist, track#, album, etc.) to whatever mangled name was needed to satisfy the file system. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/