update pkg/sftp to the latest master

Our pull request to handle transfer errors is now merged, so updating
pkg/sftp should fix #36
This commit is contained in:
Nicola Murino
2019-09-13 08:30:22 +02:00
parent e7eb3476b7
commit fd59f35108
3 changed files with 8 additions and 2 deletions

View File

@@ -325,7 +325,7 @@ func TestDirCommands(t *testing.T) {
os.RemoveAll(user.GetHomeDir())
}
func TestSymlink(t *testing.T) {
func TestLink(t *testing.T) {
usePubKey := false
user, _, err := api.AddUser(getTestUser(usePubKey), http.StatusOK)
if err != nil {
@@ -359,6 +359,10 @@ func TestSymlink(t *testing.T) {
if err == nil {
t.Errorf("creating a symlink to an existing one must fail")
}
err = client.Link(testFileName, testFileName+".hlink")
if err == nil {
t.Errorf("hard link is not supported and must fail")
}
err = client.Remove(testFileName + ".link")
if err != nil {
t.Errorf("error removing symlink: %v", err)