blob: 68b34b64bffe83882dfe67fa630644e1d926c8c8 (
plain) (
tree)
|
|
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))
|