mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
virtual folders fixes
scp now properly handles virtual folders. rsync is disabled for users with virtual folders: we execute a system command and it is not aware about virtual folders. git is not allowed if the repo path is inside a virtual folder
This commit is contained in:
@@ -3952,6 +3952,11 @@ func TestSCPRecursive(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Errorf("error uploading dir via scp: %v", err)
|
||||
}
|
||||
// overwrite existing dir
|
||||
err = scpUpload(testBaseDirPath, remoteUpPath, true, false)
|
||||
if err != nil {
|
||||
t.Errorf("error uploading dir via scp: %v", err)
|
||||
}
|
||||
err = scpDownload(testBaseDirDownPath, remoteDownPath, true, true)
|
||||
if err != nil {
|
||||
t.Errorf("error downloading dir via scp: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user