-
Notifications
You must be signed in to change notification settings - Fork 380
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
function WriteTo
return 'file does not exist'
#510
Comments
whether i use fstat or stat , |
Can you use These errors are also not coming from this package, but the server. You may be attempting to do something incompatible with the way the server works. |
yep, err |
The other possibility is that the file is being deleted before the transfer. The If it does (or doesn’t), another option is to implement the |
Hi I also seem to be facing the same issue. But oddly for me if I connect to the sftp using the cli I can download the file locally without any issues. One thing I noticed was if I download and upload the same file back to the sftp the package works completely fine. P.S there are no permission changed on the file. |
As I noted, IBM Sterling SFTP servers (and some other ”high-security” SFTP server configurations) are known to have compatibility issues with us trying to figure out how big a file is before downloading it concurrently. I’m starting to think that maybe we should build a “WriteTo” alternative which is built for maximum compatibility. 🤔 |
yep.
|
i think a “WriteTo” alternative is necessary |
I mean, remember this won’t be automatically used by anything, like |
Hi, I have changed the WriteTo to preserve the concurrency.
I take the fileInfo from ReadDir
|
The However, in my planned client re-rewrite, I’m think I should just ditch the whole “guess the best number of concurrent requests” entirely. Even if this causes small-file inefficiencies it will be less of a pain than the regular occurrence of people’s frustrations at these only-read-once-for-security designs. |
Ok that's right...
And that was just a 18M file Maybe something like
path should maybe be the path without filename for the functions... |
Just in case of any misunderstanding ... This library is just great and served me well over the last year. Thanks for that! Since i have to deal with that server i have now implemented the FilterDir and OpenWithFileInfo in a minimal invasive way. |
Oh, yeah, I totally understood what you were referring to, and yeah, these servers are typically poorly designed to integrate with typical engineering practice… I was wanting to put in “security theater” but decided to avoid it. 😆 I’d probably say, I would prefer us to not pick up If we add an |
`if f, err = s.client.Open(path.Join(remotePath, fileName)); err != nil {
return err
}
return err
}
`
open file is ok, and i am sure that sftp server has the file
but writeTo calling will return a err, err content is file does not exist
The text was updated successfully, but these errors were encountered: