Add Rsync

This commit is contained in:
Bigsk 2020-11-08 00:26:31 +08:00
parent 7cdced238a
commit 7a58573fb7

View File

@ -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)