Menu

#161 sync with --delete-removed says it will remove remote directory but thankfully doesn't

Malfunction
closed-fixed
nobody
None
5
2015-02-09
2014-12-18
Dan Wood
No

Using s3cmd version 1.5.0-rc1.

Steps to reproduce:

  1. Set up so that you have a local and remote folder to sync, containing a subdirectory with some files in it.
  2. Remove one of the files in that subdirectory locally.
  3. Perform a sync (--dry-run OK).

What I would expect:

I should see that the remote file in that subdirectory should be removed, but nothing else.

What I get:

It ways it is deleting (or will delete if --dry-run is used) the directory containing that file, and the file itself.

Fortunately in testing it doesn't actually delete the directory. But it looks like it is doing so!

Discussion

  • Matt Domsch

    Matt Domsch - 2014-12-18

    There are really no directories stored in S3 - only objects that happen to have names that include backslash characters. (it is possible to create an empty directory with some tools, but s3cmd never does).

     
  • Matt Domsch

    Matt Domsch - 2015-02-09
    • status: open --> closed-fixed
     

Log in to post a comment.