mirror of
https://gitlab.sectorq.eu/jaydee/auto_import.git
synced 2025-12-14 18:44:52 +01:00
build
This commit is contained in:
@@ -190,6 +190,7 @@ while True:
|
|||||||
try:
|
try:
|
||||||
#shutil.copy("{}/{}".format(FULL_PATH,filename),"{}/{}".format(_FDEST,filename))
|
#shutil.copy("{}/{}".format(FULL_PATH,filename),"{}/{}".format(_FDEST,filename))
|
||||||
myCmd = f"rsync -avz {FULL_PATH}/{filename} {_FDEST}"
|
myCmd = f"rsync -avz {FULL_PATH}/{filename} {_FDEST}"
|
||||||
|
logging.debug(myCmd)
|
||||||
status, output = subprocess.getstatusoutput(myCmd)
|
status, output = subprocess.getstatusoutput(myCmd)
|
||||||
logging.debug(output)
|
logging.debug(output)
|
||||||
logging.debug(status)
|
logging.debug(status)
|
||||||
@@ -205,6 +206,7 @@ while True:
|
|||||||
try:
|
try:
|
||||||
#shutil.copy("{}/{}".format(_DEV_DIR,file_or_dir),_FDEST)
|
#shutil.copy("{}/{}".format(_DEV_DIR,file_or_dir),_FDEST)
|
||||||
myCmd = f"rsync -avz {_DEV_DIR}/{file_or_dir} {_FDEST}"
|
myCmd = f"rsync -avz {_DEV_DIR}/{file_or_dir} {_FDEST}"
|
||||||
|
logging.debug(myCmd)
|
||||||
status, output = subprocess.getstatusoutput(myCmd)
|
status, output = subprocess.getstatusoutput(myCmd)
|
||||||
files_imported += 1
|
files_imported += 1
|
||||||
|
|
||||||
@@ -212,9 +214,10 @@ while True:
|
|||||||
try:
|
try:
|
||||||
#shutil.copy("{}/{}".format(_DEV_DIR,file_or_dir),"{}/{}".format(_FDEST,file_or_dir))
|
#shutil.copy("{}/{}".format(_DEV_DIR,file_or_dir),"{}/{}".format(_FDEST,file_or_dir))
|
||||||
myCmd = f"rsync -avz {_DEV_DIR}/{file_or_dir} {_FDEST}"
|
myCmd = f"rsync -avz {_DEV_DIR}/{file_or_dir} {_FDEST}"
|
||||||
|
logging.debug(myCmd)
|
||||||
status, output = subprocess.getstatusoutput(myCmd)
|
status, output = subprocess.getstatusoutput(myCmd)
|
||||||
|
logging.debug(output)
|
||||||
|
logging.debug(status)
|
||||||
files_imported += 1
|
files_imported += 1
|
||||||
except:
|
except:
|
||||||
logging.debug("failed to move file {}".format(file_or_dir))
|
logging.debug("failed to move file {}".format(file_or_dir))
|
||||||
|
|||||||
Reference in New Issue
Block a user