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

Allow sending files to destinations with absolute paths #58

Closed
GreenMobius opened this issue Nov 12, 2021 · 1 comment · Fixed by #63
Closed

Allow sending files to destinations with absolute paths #58

GreenMobius opened this issue Nov 12, 2021 · 1 comment · Fixed by #63
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@GreenMobius
Copy link

My use case for teleport is going to be using it programmatically for some system testing-

It would be really nice to be able to keep the preceding slash e.g. /tmp/file when transferring something, as I have some files that may use local paths from the testing directory, and some files that use absolute paths for some configuration changes.

Essentially, would it be possible to find a way to allow absolute path transfers without needing a command-line flag?

@genonullfree genonullfree added the enhancement New feature or request label Nov 12, 2021
@genonullfree
Copy link
Owner

This should be relatively easy, we could disable the removal of any / at the beginning of the filename path in the client, and on the server side have a flag to disable the check for the beginning /. Could add a command argument like --allow-absolute when starting the server to disable the check.

@genonullfree genonullfree added the good first issue Good for newcomers label Nov 18, 2021
@genonullfree genonullfree mentioned this issue Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants