Ejemplo n.º 1
0
 def callSyncObj(
     self,
     folder="d:/tmp/test/source",
     encryptionPass="******",
     zipDir="d:/tmp/test/zip",
     workingPath="d:/tmp/test/working",
     test=False,
 ):
     e = encytpedZipSync.encSyncTask(str(sys.argv[0:]))
     if test == "test":
         passwd = "testPass"
     else:
         passwd = encryptionPass
     e.initParam(zipDir, folder, workingPath, passwd, "extract")
     e.run()
     e = encytpedZipSync.encSyncTask(str(sys.argv[0:]))
     if test:
         passwd = "testPass"
         zipDir = "d:/tmp/test/zip"
         folder = "d:/tmp/test/source"
         workingPath = "d:/tmp/test/working"
     else:
         passwd = encryptionPass
     e.initParam(zipDir, folder, workingPath, passwd, "sync")
     e.run()
Ejemplo n.º 2
0
Archivo: syncTk.py Proyecto: weijia/ufs
def startSync(folder = "d:/tmp/test/source", encryptionPass = "******", zipDir = "d:/tmp/test/zip", 
            workingPath = "d:/tmp/test/working",direction = "sync", test = "test"):
    e = encytpedZipSync.encSyncTask(str(sys.argv[0:]))
    if test == "test":
        passwd = "testPass"
    else:
        passwd = encryptionPass
    e.initParam(zipDir, folder, workingPath, passwd, "extract")
    e.run()
    e = encytpedZipSync.encSyncTask(str(sys.argv[0:]))
    if test == "test":
        passwd = "testPass"
    else:
        passwd = encryptionPass
    e.initParam(zipDir, folder, workingPath, passwd, "sync")
    e.run()