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


Groups > comp.lang.python > #83115 > unrolled thread

Re: How do I remove/unlink wildcarded files

Started byChris Angelico <rosuav@gmail.com>
First post2015-01-02 23:59 +1100
Last post2015-01-02 23:59 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How do I remove/unlink wildcarded files Chris Angelico <rosuav@gmail.com> - 2015-01-02 23:59 +1100

#83115 — Re: How do I remove/unlink wildcarded files

FromChris Angelico <rosuav@gmail.com>
Date2015-01-02 23:59 +1100
SubjectRe: How do I remove/unlink wildcarded files
Message-ID<mailman.17322.1420203560.18130.python-list@python.org>
On Fri, Jan 2, 2015 at 11:36 PM, Ervin Hegedüs <airween@gmail.com> wrote:
>> And worse, the given re would delete a file named "uni" which doesn't
>> sound ANYTHING like what the OP wanted :-)
>
> yes, you're right - I've missed out a "." before the "*". :)

Another reason to avoid regexps when you don't actually need them.
Globs are simpler, and have fewer obscure failure modes.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web