mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
recursive permissions check before renaming/copying directories
This commit is contained in:
@@ -266,7 +266,7 @@ func GetDirsForSFTPPath(p string) []string {
|
||||
return dirsForPath
|
||||
}
|
||||
|
||||
// CleanSFTPPath returns a clean sftp path
|
||||
// CleanSFTPPath returns a cleaned SFTP path
|
||||
func CleanSFTPPath(p string) string {
|
||||
sftpPath := filepath.ToSlash(p)
|
||||
if !path.IsAbs(p) {
|
||||
|
||||
Reference in New Issue
Block a user