Commit a270bff8 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added support for multilevel dirs. This should fix the rsync issue (can't...


Added support for multilevel dirs. This should fix the rsync issue (can't create dest dirs if not esist).

Signed-off-by: default avatarCristiano Urban <cristiano.urban@inaf.it>
parent 414a4135
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -46,8 +46,11 @@ class RetrieveExecutor(TaskExecutor):
                # TO BE DONE 
                pass
            else:
                os.makedirs(destPath, exist_ok = True)
                sp = subprocess.run(["rsync", "-av", srcPath, destPath], capture_output = True)
                out.write(f"rsync stdout: {sp.stdout}")
                if(sp.returncode or sp.stderr):
                    out.write(f"rsync stderr: {sp.stderr}")
                    self.dbConn.disconnect()
                    return False
                else: