Skip to content

Commit

Permalink
move READDISK_* constants to new flags module
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jun 10, 2018
1 parent 8ce3dd3 commit 191577a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 7 additions & 0 deletions libarchive/flags.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
READDISK_RESTORE_ATIME = 0x0001
READDISK_HONOR_NODUMP = 0x0002
READDISK_MAC_COPYFILE = 0x0004
READDISK_NO_TRAVERSE_MOUNTS = 0x0008
READDISK_NO_XATTR = 0x0010
READDISK_NO_ACL = 0x0020
READDISK_NO_FFLAGS = 0x0040
9 changes: 0 additions & 9 deletions libarchive/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@
)


READDISK_RESTORE_ATIME = 0x0001
READDISK_HONOR_NODUMP = 0x0002
READDISK_MAC_COPYFILE = 0x0004
READDISK_NO_TRAVERSE_MOUNTS = 0x0008
READDISK_NO_XATTR = 0x0010
READDISK_NO_ACL = 0x0020
READDISK_NO_FFLAGS = 0x0040


@contextmanager
def new_archive_read_disk(path, flags=0, lookup=False):
archive_p = read_disk_new()
Expand Down

0 comments on commit 191577a

Please sign in to comment.