ncftpput은 상위 디렉토리를 생성하지 않습니다

ncftpput은 상위 디렉토리를 생성하지 않습니다

여러 디렉터리를 FTP 서버에 재귀적으로 업로드하려고 합니다(FTP가 유일한 방법입니다).

다음과 같은 환경이 있다고 가정해 보겠습니다.

외딴:

/
/remote-files/
/readme.txt

현지의:

/my-website.com/
/my-website.com/dir1/file1.txt
/my-website.com/dir2/file2.txt

다음 명령을 실행하면:

ncftpput -R -v -u "root" -p "root" 149.xxx.xxx.xxx / /my-website.com

결과는 다음과 같습니다:

/
/remote-files/
/readme.txt
/my-website.com/
/my-website.com/dir1/file1.txt
/my-website.com/dir2/file2.txt

내가 원하는 것:

/
/remote-files/
/readme.txt
/dir1/file1.txt
/dir2/file2.txt

나는 시도했다:

ncftpput -R -v -u "root" -p "root" 149.xxx.xxx.xxx / /my-website.com/

그러나 그것은 아무런 차이가 없습니다.

어떻게 하나요?

아니면 다른 프로그램을 사용해야 하나요?

감사해요.

관련 정보