'Rename a file or folder at *old_path* to *new_path* shared at *service_name*. Note that this method cannot be used to rename file/folder across different shared folders
*old_path* and *new_path* are string/unicode referring to the old and new path of the renamed resources (relative to) the shared folder.
If the path contains non-English characters, an unicode string must be used to pass in the path.
:param string/unicode service_name: Contains the name of the shared folder.
:return: None'

def rename(self, service_name, old_path, new_path, 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._rename(service_name, old_path, new_path, cb, eb)
        while self.is_busy:
            self._pollForNetBIOSPacket(timeout)
    finally:
        self.is_busy = False
