From 7a58573fb729895cf9d65d9410f5cd63679fff2a Mon Sep 17 00:00:00 2001 From: Bigsk Date: Sun, 8 Nov 2020 00:26:31 +0800 Subject: [PATCH] Add Rsync --- manager/manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manager/manager.py b/manager/manager.py index a173b34..2ecc695 100644 --- a/manager/manager.py +++ b/manager/manager.py @@ -1,5 +1,5 @@ #------------------# -import bs4,requests,urllib,time,threading +import bs4,requests,urllib,time,threading,os #------------------# class MultiThreadDownload(threading.Thread): @@ -93,4 +93,7 @@ class GOSManager(object): if(i not in ListReturn): ListReturn.append(i) return ListReturn + def RsyncSync(self,From,To): + os.system("rsync -avrt "+From+" "+To) +