def METHOD_NAME(self, tmp_path):
    for x in ("tmp", "blah", "dar"):
        (tmp_path / x).touch()
    for x in ("a", "b", "c"):
        (tmp_path / x).mkdir()
    # regular directory scanning
    sorted_files = livefs.sorted_scan(str(tmp_path))
    assert sorted_files == [str(tmp_path / x) for x in ("blah", "dar", "tmp")]
    # nonexistent paths
    nonexistent_path = str(tmp_path / "foobar")
    assert livefs.sorted_scan(nonexistent_path) == []
    assert livefs.sorted_scan(nonexistent_path, nonexistent=True) == [
        nonexistent_path
    ]