I need to generate a list of all files in a directory with a *.MDB extension (personal geodatabases) in a Python script. Should I first split the path and filenames:
Both code snippets will work on Windows and unix/linux, but the top one will only return *.mdb (not *.MDB/*.MdB/etc...) on unix/linux as those OSs have case-sensitive file systems (generally speaking, as there are case-insensitive types of filesystems for linux and you can enable case-sensivity for certain Windows filesystems).