2

Popen および subprocess.check_call を介して Python から rsync を実行しようとしましたが、まったく同じエラーが発生しました。

subprocess.check_call(['rsync', '-au', '/opt/catflow/EpressCatalog/*', '/Users/pistacchio/dev/epress/catflow/portal/branches/noscript/frontend/static/repo/usr/2/catalogs/2/builds/ipad'])
rsync: link_stat "/opt/catflow/EpressCatalog/*" failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
*** CalledProcessError: Command '['rsync', '-au', '/opt/catflow/EpressCatalog/*', '/Users/pistacchio/dev/epress/catflow/portal/branches/noscript/frontend/static/repo/usr/2/catalogs/2/builds/ipad']' returned non-zero exit status 23

問題は、見つからない (またはアクセスできない) ことのよう/opt/catflow/EpressCatalog/*です。存在するだけでなく、コマンドラインから実行すると正しい結果が得られます。

何か助けはありますか?

4

1 に答える 1