mirror of https://github.com/patacrep/patacrep.git
Browse Source
With this, the songs hierarchy in the library can be different from songs/author/song.sgremotes/origin/HEAD
spalax
12 years ago
committed by
Romain Goffe
6 changed files with 26 additions and 10 deletions
@ -0,0 +1,13 @@ |
|||||
|
#!/usr/bin/python |
||||
|
# -*- coding: utf-8 -*- |
||||
|
# |
||||
|
|
||||
|
import fnmatch |
||||
|
import os |
||||
|
|
||||
|
def recursiveFind(root_directory, pattern): |
||||
|
matches = [] |
||||
|
for root, dirnames, filenames in os.walk(root_directory): |
||||
|
for filename in fnmatch.filter(filenames, pattern): |
||||
|
matches.append(os.path.join(root, filename)) |
||||
|
return matches |
Loading…
Reference in new issue