bypy/bypy.py
def compare(self, remotedir = None, localdir = None, skip_remote_only_dirs = False):
		''' Usage: compare [remotedir] [localdir] - \
compare the remote directory with the local directory
  remotedir - the remote directory at Baidu Yun (after app's directory). \
if not specified, it defaults to the root directory.
  localdir - the local directory, if not specified, it defaults to the current directory.
  skip_remote_only_dirs - skip remote-only sub-directories (faster if the remote \
directory is much larger than the local one). it defaults to False.
		'''
		same, diff, local, remote = self.__compare(get_pcs_path(remotedir), localdir, str2bool(skip_remote_only_dirs))

		pr("==== Same files ===")
		for c in same:
			pr("{} - {}".format(c[0], c[1]))

		pr("==== Different files ===")
		for d in diff:
			pr("{} - {}".format(d[0], d[1]))

		pr("==== Local only ====")
		for l in local:
			pr("{} - {}".format(l[0], l[1]))

		pr("==== Remote only ====")
		for r in remote:
			pr("{} - {}".format(r[0], r[1]))

		pr("\nStatistics:")
		pr("--------------------------------")
		pr("Same: {}".format(len(same)))
		pr("Different: {}".format(len(diff)))
		pr("Local only: {}".format(len(local)))
		pr("Remote only: {}".format(len(remote)))

		self.result['same'] = same
		self.result['diff'] = diff
		self.result['local'] = local
		self.result['remote'] = remote

		return const.ENoError
 Usage: compare [remotedir] [localdir] - \
compare the remote directory with the local directory
  remotedir - the remote directory at Baidu Yun (after app's directory). \
if not specified, it defaults to the root directory.
  localdir - the local directory, if not specified, it defaults to the current directory.
  skip_remote_only_dirs - skip remote-only sub-directories (faster if the remote \
directory is much larger than the local one). it defaults to False.
		
compare [remotedir] [localdir] - \
compare the remote directory with the local directory
remotedir - the remote directory at Baidu Yun (after app's directory). \
if not specified, it defaults to the root directory.
localdir - the local directory, if not specified, it defaults to the current directory.
skip_remote_only_dirs - skip remote-only sub-directories (faster if the remote \
directory is much larger than the local one). it defaults to False.
compare [ remotedir ] [ localdir ] - \ compare the remote directory with the local directory remotedir - the remote directory at Baidu Yun ( after app ' s directory ) . \ if not specified it defaults to the root directory . localdir - the local directory if not specified it defaults to the current directory . skip_remote_only_dirs - skip remote - only sub - directories ( faster if the remote \ directory is much larger than the local one ) . it defaults to False .
def compare(self, remotedir = None, localdir = None, skip_remote_only_dirs = False):
		same, diff, local, remote = self.__compare(get_pcs_path(remotedir), localdir, str2bool(skip_remote_only_dirs))
		pr("==== Same files ===")
		for c in same:
			pr("{} - {}".format(c[0], c[1]))
		pr("==== Different files ===")
		for d in diff:
			pr("{} - {}".format(d[0], d[1]))
		pr("==== Local only ====")
		for l in local:
			pr("{} - {}".format(l[0], l[1]))
		pr("==== Remote only ====")
		for r in remote:
			pr("{} - {}".format(r[0], r[1]))
		pr("\nStatistics:")
		pr("--------------------------------")
		pr("Same: {}".format(len(same)))
		pr("Different: {}".format(len(diff)))
		pr("Local only: {}".format(len(local)))
		pr("Remote only: {}".format(len(remote)))
		self.result['same'] = same
		self.result['diff'] = diff
		self.result['local'] = local
		self.result['remote'] = remote
		return const.ENoError
def compare ( self , remotedir = None , localdir = None , skip_remote_only_dirs = False ) : same , diff , local , remote = self . __compare ( get_pcs_path ( remotedir ) , localdir , str2bool ( skip_remote_only_dirs ) ) pr ( "==== Same files ===" ) for c in same : pr ( "{} - {}" . format ( c [ 0 ] , c [ 1 ] ) ) pr ( "==== Different files ===" ) for d in diff : pr ( "{} - {}" . format ( d [ 0 ] , d [ 1 ] ) ) pr ( "==== Local only ====" ) for l in local : pr ( "{} - {}" . format ( l [ 0 ] , l [ 1 ] ) ) pr ( "==== Remote only ====" ) for r in remote : pr ( "{} - {}" . format ( r [ 0 ] , r [ 1 ] ) ) pr ( "\nStatistics:" ) pr ( "--------------------------------" ) pr ( "Same: {}" . format ( len ( same ) ) ) pr ( "Different: {}" . format ( len ( diff ) ) ) pr ( "Local only: {}" . format ( len ( local ) ) ) pr ( "Remote only: {}" . format ( len ( remote ) ) ) self . result [ 'same' ] = same self . result [ 'diff' ] = diff self . result [ 'local' ] = local self . result [ 'remote' ] = remote return const . ENoError
Usage: compare [remotedir] [localdir] - \
compare the remote directory with the local directory
remotedir - the remote directory at Baidu Yun (after app's directory).
Usage : compare [ remotedir ] [ localdir ] - \ compare the remote directory with the local directory remotedir - the remote directory at Baidu Yun ( after app ' s directory ) .
''' Usage: compare [remotedir] [localdir] - \
compare the remote directory with the local directory
  remotedir - the remote directory at Baidu Yun (after app's directory). \
if not specified, it defaults to the root directory.
  localdir - the local directory, if not specified, it defaults to the current directory.
  skip_remote_only_dirs - skip remote-only sub-directories (faster if the remote \
directory is much larger than the local one). it defaults to False.
		'''
self
remotedir
localdir
skip_remote_only_dirs