Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I access /cygdrive/c/.. in a bash script?

Why can't the folder be found? I double checked that it exists.

#!/bin/bash
echo "This will sync the background_docs folder"
lftp ftp://user:[email protected] -e "mirror -r /cygdrive/c/Users/usera/Desktop/test_folder/ --only-missing -e;exit"
like image 290
Kelbizzle Avatar asked Nov 14 '22 21:11

Kelbizzle


1 Answers

I suggest looking at cygpath

cygpath -w

converts to windows path

cygpath -u

converts to unix path
like image 176
sehe Avatar answered Dec 18 '22 17:12

sehe