So, I modify it a bit to use with pys60.
- don't load fnmatch, glob, codecs
- remove some functionalities and some docstrings
- match wildcard with regexp simplisticly
1 2 #return fnmatch.fnmatch(self.name, pattern) 3 4 # poor man's fnmatch 5 pattern = pattern.replace('.', '\\.').replace('*','.*').replace('?','.') 6 return re.match(pattern, self.name)
But most of it works nicely. Please report bugs in comments.
Download it here path.py.