(when(not(directory-exists?source-dir))(error(format"clone error: source directory ~a does not exist"source-dir)))
(when(not(directory-exists?source-dir))(error'clone(format"source directory ~a does not exist"source-dir)))
(definetarget-dir,target-path)
(when(source-dir.contains-directory?.target-dir)(error'clone"aborted because target directory for cloning (~a) can't be inside source directory (~a)"target-dirsource-dir))