mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
add dot and dot dot directories to sftp/ftp file listing
This commit is contained in:
@@ -57,8 +57,9 @@ func TestBasicFTPHandlingCryptFs(t *testing.T) {
|
||||
}
|
||||
list, err := client.List(".")
|
||||
if assert.NoError(t, err) {
|
||||
assert.Len(t, list, 1)
|
||||
assert.Equal(t, testFileSize, int64(list[0].Size))
|
||||
assert.Len(t, list, 2)
|
||||
assert.Equal(t, ".", list[0].Name)
|
||||
assert.Equal(t, testFileSize, int64(list[1].Size))
|
||||
}
|
||||
user, _, err = httpdtest.GetUserByUsername(user.Username, http.StatusOK)
|
||||
assert.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user