'Reset file attributes of one or more regular files or folders.
It supports the use of wildcards in file names, allowing for unlocking of multiple files/folders in a single request.
This function is very helpful when deleting files/folders that are read-only.
Note: this function is currently only implemented for SMB2! Technically, it sets the FILE_ATTRIBUTE_NORMAL flag, therefore clearing all other flags. (See https://msdn.microsoft.com/en-us/library/cc232110.aspx for further information)
:param string/unicode service_name: Contains the name of the shared folder.
:param string/unicode path_file_pattern: The pathname of the file(s) to be deleted, relative to the service_name.
Wildcards may be used in th filename component of the path.
If your path/filename contains non-English characters, you must pass in an unicode string.
:return: None'

def resetFileAttributes(self, service_name, path_file_pattern, timeout=30):

    if (not self.sock):
        raise NotConnectedError('Not    connected    to    server')
    def cb(r):
        self.is_busy = False
    def eb(failure):
        self.is_busy = False
        raise failure
    self.is_busy = True
    try:
        self._resetFileAttributes(service_name, path_file_pattern, cb, eb, timeout=timeout)
        while self.is_busy:
            self._pollForNetBIOSPacket(timeout)
    finally:
        self.is_busy = False
