如果用户输入了不存在的不正确目录名称,rsync 会生成此错误。我正在使用subprocess.Popen
Python。如何在 Python 中捕获此错误?
rsync: link_stat "/fdsfsd" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1637) [Receiver=3.1.0dev]
rsync: [Receiver] write error: Broken pipe (32)