Find if a file existing within 1000s of folder/sub-folder - each file has a unique presence

Grant Edwards invalid at invalid.invalid
Thu May 21 10:14:11 EDT 2015


On 2015-05-21, Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:

> import glob
> print(glob.glob("c:/abc/def/ghjmain/features/XYZ/*<filename>"))
>
> Don't use backslashes \ as they have special meaning to Python. Use forward 
> slashes and let Python convert them as needed.

Interesting. I've never heard about this.

When will Python convert them?

-- 
Grant Edwards               grant.b.edwards        Yow! I was born in a
                                  at               Hostess Cupcake factory
                              gmail.com            before the sexual
                                                   revolution!



More information about the Python-list mailing list