#
"""Server for testing SMB"""
-from __future__ import absolute_import, division, print_function
-# NOTE: the impacket configuration is not unicode_literals compatible!
+from __future__ import (absolute_import, division, print_function,
+ unicode_literals)
import argparse
import logging
# Get this file's information
resp_info, error_code = imp_smbserver.queryPathInformation(
- "", full_path, level=imp_smb.SMB_QUERY_FILE_ALL_INFO)
+ os.path.dirname(full_path), os.path.basename(full_path),
+ level=imp_smb.SMB_QUERY_FILE_ALL_INFO)
if error_code != STATUS_SUCCESS:
raise SmbException(error_code, "Failed to query path info")