mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
touch: fix issue where directory is created instead of file
Detected on ftp, sftp and Dropbox backends. Fixes #5952
This commit is contained in:
@@ -1636,7 +1636,7 @@ func TestTouchDir(t *testing.T) {
|
||||
r.CheckRemoteItems(t, file1, file2, file3)
|
||||
|
||||
timeValue := time.Date(2010, 9, 8, 7, 6, 5, 4, time.UTC)
|
||||
err := operations.TouchDir(ctx, r.Fremote, timeValue, true)
|
||||
err := operations.TouchDir(ctx, r.Fremote, "", timeValue, true)
|
||||
require.NoError(t, err)
|
||||
if accounting.Stats(ctx).GetErrors() != 0 {
|
||||
err = accounting.Stats(ctx).GetLastError()
|
||||
|
||||
Reference in New Issue
Block a user