mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
add a File interface so we can avoid to use os.File directly
This commit is contained in:
@@ -806,7 +806,7 @@ func TestRenamePermission(t *testing.T) {
|
||||
}
|
||||
info, err = os.Lstat(tmpDirLink)
|
||||
if assert.NoError(t, err) {
|
||||
assert.True(t, info.Mode()&os.ModeSymlink == os.ModeSymlink)
|
||||
assert.True(t, info.Mode()&os.ModeSymlink != 0)
|
||||
// the source is a symlink and the target has createDirs and upload perm
|
||||
assert.False(t, conn.isRenamePermitted(tmpDir, request.Filepath, request.Target, info))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user