为什么找不到文件夹?我仔细检查它是否存在。
#!/bin/bash
echo "This will sync the background_docs folder"
lftp ftp://user:pass@server.org -e "mirror -r /cygdrive/c/Users/usera/Desktop/test_folder/ --only-missing -e;exit"
最佳答案
我建议看看cygpath
cyg路径-w
converts to windows path
cygpath -u
converts to unix path
关于windows - 如何在 bash 脚本中访问/cygdrive/c/..?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6477198/