'Usage: syncup [localdir] [remotedir] [deleteremote] - sync up from the local directory to the remote directory
localdir - the local directory to sync from if not specified, it defaults to the current directory.
remotedir - the remote directory at Baidu Yun (after app\'s directory) to sync to. if not specified, it defaults to the root directory
deleteremote - delete remote files that are not inside the local directory, default is False'

def syncup(self, localdir=u'', remotedir=u'', deleteremote=False):

    result = const.ENoError
    rpath = get_pcs_path(remotedir)
    compare_result = self.__compare(rpath, localdir, True)
    (same, diff, local, remote) = compare_result
    if (Pool and (self.processes > 1)):
        subresult = self.__syncup_multi(localdir, rpath, compare_result)
        if (subresult != const.ENoError):
            result = subresult
    else:
        subresult = self.__syncup_single(localdir, rpath, compare_result)
        if (subresult != const.ENoError):
            result = subresult
    if str2bool(deleteremote):
        subresult = self.__syncup_delete_remote(rpath, remote)
        if (subresult != const.ENoError):
            result = subresult
    return result
