blob: 68b34b64bffe83882dfe67fa630644e1d926c8c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
from glob import glob
import f
def ls(pattern):
"""Return a list of files that match `pattern`. This is a DWIM function and
will handle relative paths, absolute paths, etc. It should behave
approximately similarly to GNU's ls."""
return glob(f.ensure_absolute(pattern))
|