Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44974

Re: Making safe file names

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 <python-python-list@m.gmane.org>
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 <wlfraed@ix.netcom.com>
Subject Re: Making safe file names
Date Wed, 08 May 2013 19:37:36 -0400
Organization > Bestiaria Support Staff <
References <51895D03.4000300@gmail.com> <CAA=1kxTnyFgLW=N_7mOCNnj75qDHt8Dfd-aYUYD8deLTrUBQ4g@mail.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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1465.1368056269.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Tue, 07 May 2013 18:10:25 -0500, Andrew Berg
<bahamutzero8825@gmail.com> 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/

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Making safe file names Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-08 19:37 -0400
  Re: Making safe file names Roy Smith <roy@panix.com> - 2013-05-08 20:16 -0400
    Re: Making safe file names Chris Angelico <rosuav@gmail.com> - 2013-05-09 10:27 +1000
    Re: Making safe file names Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-09 01:49 +0000
      Re: Making safe file names Roy Smith <roy@panix.com> - 2013-05-08 21:56 -0400
    Re: Making safe file names Andrew Berg <bahamutzero8825@gmail.com> - 2013-05-08 21:11 -0500
      Re: Making safe file names Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-09 03:08 +0000
        Re: Making safe file names Roy Smith <roy@panix.com> - 2013-05-09 08:55 -0400
          Re: Making safe file names Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-05-10 12:04 +1200
            Re: Making safe file names Tim Chase <python.list@tim.thechases.com> - 2013-05-09 19:17 -0500
        Re: Making safe file names Chris Angelico <rosuav@gmail.com> - 2013-05-09 13:53 +1000

csiph-web