def METHOD_NAME(self, tmp_path):
    for x in ("blah", "blah~"):
        (tmp_path / x).touch()
    sorted_files = livefs.sorted_scan(str(tmp_path))
    assert [str(tmp_path / x) for x in ("blah", "blah~")] == sorted_files
    sorted_files = livefs.sorted_scan(str(tmp_path), backup=False)
    assert [str(tmp_path / x) for x in ("blah",)] == sorted_files