mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
event action: add update modtime to fs rename
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -312,7 +312,7 @@ func (fs *MockOsFs) Remove(name string, _ bool) error {
|
||||
}
|
||||
|
||||
// Rename renames (moves) source to target
|
||||
func (fs *MockOsFs) Rename(source, target string) (int, int64, error) {
|
||||
func (fs *MockOsFs) Rename(source, target string, _ int) (int, int64, error) {
|
||||
err := os.Rename(source, target)
|
||||
return -1, -1, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user