|
|
|
@ -752,11 +752,12 @@ class client(share, commandServer, encrypt):
|
|
|
|
|
os.close(fd)
|
|
|
|
|
|
|
|
|
|
def moveArch(self, srcArchFile, dstArchFile, progress=False,\
|
|
|
|
|
remoteServer=False):
|
|
|
|
|
remoteServer=False, mode=0600):
|
|
|
|
|
"""Перенос архива из одной директории в другую"""
|
|
|
|
|
class copyTo(color_print):
|
|
|
|
|
def __init__(self, destFile):
|
|
|
|
|
self.FD = open(destFile, "w")
|
|
|
|
|
os.chmod(destFile, mode)
|
|
|
|
|
def write(self, data):
|
|
|
|
|
self.FD.write(data)
|
|
|
|
|
def close(self):
|
|
|
|
|