Skip to content

Commit

Permalink
move format_name from ArchiveEntry to ArchiveRead
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Mar 3, 2024
1 parent 6c98ad6 commit 84cbf40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libarchive/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,6 @@ def rdevminor(self):
def rdevminor(self, value):
ffi.entry_set_rdevminor(self._entry_p, value)

@property
def format_name(self):
return ffi.format_name(self._archive_p)


class ConsumedArchiveEntry(ArchiveEntry):

Expand Down
4 changes: 4 additions & 0 deletions libarchive/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def filter_names(self):
count = ffi.filter_count(self._pointer)
return [ffi.filter_name(self._pointer, i) for i in range(count - 1)]

@property
def format_name(self):
return ffi.format_name(self._pointer)


@contextmanager
def new_archive_read(format_name='all', filter_name='all', passphrase=None):
Expand Down

0 comments on commit 84cbf40

Please sign in to comment.