Skip to content

Commit 0c2822e

Browse files
committed
use .path so we get paths pack
1 parent 6379480 commit 0c2822e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pyiceberg/table/inspect.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,9 @@ def orphaned_files(self, location: str, older_than: Optional[timedelta] = timede
694694
selector = FileSelector(path, recursive=True)
695695
# filter to just files as it may return directories, and filter on time
696696
as_of = datetime.now(timezone.utc) - older_than if older_than else None
697-
all_files = [f for f in fs.get_file_info(selector) if f.type == FileType.File and (as_of is None or (f.mtime < as_of))]
697+
all_files = [
698+
f.path for f in fs.get_file_info(selector) if f.type == FileType.File and (as_of is None or (f.mtime < as_of))
699+
]
698700

699701
orphaned_files = set(all_files).difference(all_known_files)
700702

0 commit comments

Comments
 (0)