Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cd is broken (due the trailing slash) #120

Open
sylvaticus opened this issue Jul 13, 2023 · 0 comments
Open

cd is broken (due the trailing slash) #120

sylvaticus opened this issue Jul 13, 2023 · 0 comments

Comments

@sylvaticus
Copy link

The trailing slash adjustment for ftp.ctrl.url in ftp_command for the specific "CD" command is still broken:

Using absolute path:

julia> ftp = FTP(hostname = "palantir.boku.ac.at", username = "anonymous", password = "")
URL:       ftp://anonymous@palantir.boku.ac.at/
Transfer:  passive mode
Security:  none

julia> cd(ftp,"/Public")     # cd using abs path

julia> println(ftp.ctxt.url) # ok
ftp://anonymous@palantir.boku.ac.at//Public/

julia> cd(ftp,"/")           # wishing to go back to the remote server root

julia> println(ftp.ctxt.url) # not going back to the root !
ftp://anonymous@palantir.boku.ac.at//Public//

Using relative path:

julia> ftp = FTP(hostname = "palantir.boku.ac.at", username = "anonymous", password = "")
URL:       ftp://anonymous@palantir.boku.ac.at/
Transfer:  passive mode
Security:  none

julia> cd(ftp,"Public")      # cd using relative path

julia> println(ftp.ctxt.url) # no double slash between url and path
ftp://anonymous@palantir.boku.ac.at/Public/

julia> cd(ftp,"/")           # wishing to go back to the remote server root

julia> println(ftp.ctxt.url) # again, not going back to the root !
ftp://anonymous@palantir.boku.ac.at/Public//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant