def __init__(self): self.LIST_FILE = 'file_list' self.CONFIG_FILE = 'config' f = open(self.CONFIG_FILE, "r") self.upload_location = f.readlines()[0] #read from config file f.close() self.drop = DropboxClass() self.drive = DriveClass() self.skydrive = skydriveClass() self.size = [] self.modified = {}
from skydriveClass import * from functions import * file_local, b,c = get_structure('~/easyCloud',0) print "File Local:", print file_local skydrive = skydriveClass() skydrive.login() file_sky = skydrive.get_info() print "File skydrive:", print file_sky sync_upload = [] sync_download = [] for i in file_sky: flag = False for j in file_local: if i == j: flag = True if not flag: sync_download.append(i) for i in file_local: flag = False for j in file_sky: if i == j: flag = True if not flag: sync_upload.append(i)