bypy/bypy.py
def syncup(self, localdir = '', remotedir = '', deleteremote = False):
		''' 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
		'''
		result = const.ENoError
		rpath = get_pcs_path(remotedir)
		#rpartialdir = remotedir.rstrip('/ ')
		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
		if result == const.ENoError:
			self.__remove_local_on_success(localdir)
		return result
 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
		
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
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 = '', remotedir = '', 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
		if result == const.ENoError:
			self.__remove_local_on_success(localdir)
		return result
def syncup ( self , localdir = '' , remotedir = '' , 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 if result == const . ENoError : self . __remove_local_on_success ( localdir ) return result
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.
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 .
''' 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
		''' #rpartialdir = remotedir.rstrip('/ ')
self
localdir
remotedir
deleteremote