Question about the fastai.datapath4file vs pathlib

Hi, I was wondering to know why when I get PosixPath from:

from pathlib import Path
xpath = Path(’/content’)

Does not have ls() method

but when I get from fastai.datapath4file(’/content’) I have ls() method, for example?

xxpath = datapath4file(’/content’)

both of them are PosixPath type

That’s added on the file of the library: = lambda x: list(x.iterdir())