Index: helpers.py ================================================================== --- helpers.py +++ helpers.py @@ -74,10 +74,16 @@ def moveFolderContent (spSrc, spDst, sPrefix="", bLog=False): "move folder content from to : if files already exist in , they are replaced. (not recursive)" try: + if not os.path.isdir(spSrc): + print("Folder <"+spSrc+"> not found. Can’t move files.") + return + if not os.path.isdir(spDst) + print("Folder <"+spDst+"> not found. Can’t move files.") + return for sf in os.listdir(spSrc): spfSrc = os.path.join(spSrc, sf) if os.path.isfile(spfSrc): spfDst = os.path.join(spDst, sPrefix + sf) shutil.move(spfSrc, spfDst)