Skip to content

Commit

Permalink
Merge pull request #64 from huanwwwq/smb_acl
Browse files Browse the repository at this point in the history
add acl test and advance version to 0.2.21
  • Loading branch information
isi-mfurer authored Sep 20, 2019
2 parents 84f46d3 + 99c91e4 commit cb9e70b
Show file tree
Hide file tree
Showing 5 changed files with 557 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pike/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
'test',
'transport',
]
__version_info__ = (0, 2, 20)
__version_info__ = (0, 2, 21)
__version__ = "{0}.{1}.{2}".format(*__version_info__)
5 changes: 3 additions & 2 deletions pike/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ def set_file_info_request(
return set_req

@contextlib.contextmanager
def set_file_info(self, handle, cls):
def set_file_info(self, handle, cls, additional_information=None):
info_type = file_information_class = None
if hasattr(cls, "info_type"):
info_type = cls.info_type
Expand All @@ -1580,7 +1580,8 @@ def set_file_info(self, handle, cls):
set_req = self.set_file_info_request(
handle,
file_information_class,
info_type)
info_type,
additional_information=additional_information)
yield cls(set_req)
self.connection.transceive(set_req.parent.parent)[0]

Expand Down
Loading

0 comments on commit cb9e70b

Please sign in to comment.