S3 - rclone mount - rename file or folder failed

Hi,

I am doing some tests with rclone mount on Windows (with rclone beta 1.40 - 116 on remote S3 - CEPH Luminous).
By using “rclone mount remote:test X: --vfs-cache-mode full”, I am able to mount the drive and copy to it and from it.
Nevertheless, there are two things that can disturb users :
1- When I try to rename a file or a folder, it failed with these logs :
2018/04/27 09:17:55 ERROR : folder: Dir.Rename error: Fs “S3 bucket test” can’t rename directories (no DirMove)
2018/04/27 09:17:55 ERROR : IO error: Fs “S3 bucket test” can’t rename directories (no DirMove)
2018/04/27 09:17:55 ERROR : folder : Dir.Rename error: Fs “S3 bucket test” can’t rename directories (no DirMove)
2018/04/27 09:17:55 ERROR : IO error: Fs “S3 bucket test” can’t rename directories (no DirMove)

2- When I try to create a new (empty) folder, it’s done on the drive, but nothing is done on remote bucket unless I put a file into the new folder on the drive.

The first point is the most disturbing, same thing on file or folder, is this a normal behavior ?

Thanks,

s3 not being able to rename files is this issue https://github.com/ncw/rclone/issues/1965 which I slated to be done soon. I probably won’t get it into 1.41 but shortly after.

s3 can’t rename directories. rclone could recursively rename every file under a directory to implement that and I may implement that as part of #1965.

s3 can’t store directories, only files so this is expected behaviour. Perhaps not ideal though…

Thanks.
For the second point, a good workarround would be to create 0 byte object as describe here : https://github.com/ncw/rclone/issues/753

1 Like