# Why does rename/move put file(s) in .stversions dir?

**URL:** https://forum.syncthing.net/t/why-does-rename-move-put-file-s-in-stversions-dir/2757
**Category:** General
**Created:** [May 16, 2015, 4:41pm UTC](https://forum.syncthing.net/t/why-does-rename-move-put-file-s-in-stversions-dir/2757 "2015-05-16T16:41:34Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![idef1x](https://forum.syncthing.net/user_avatar/forum.syncthing.net/idef1x/32/975_2.png) [@idef1x](https://forum.syncthing.net/u/idef1x)
#### Post date: [May 16, 2015, 4:41pm UTC](https://forum.syncthing.net/t/why-does-rename-move-put-file-s-in-stversions-dir/2757/1 "2015-05-16T16:41:34Z")

</div>

Renaming/moving files/folders/directories seems to work fine with the latest 0.11.5 release, but why are those file/folders/directories also put in the .stversions directory/folder? Yes it’s a change of location/name, so putting it there seems valid, but the file/folder remains the same. If I want to reorder my folder-structure/filenaming it means that I get everything double on the remote ends (with versioning on offcourse). Isn’t that a waste of space? Or am I just miss using synthing then? 😉

---

<div class="post-metadata">

### Author: ![idef1x](https://forum.syncthing.net/user_avatar/forum.syncthing.net/idef1x/32/975_2.png) [@idef1x](https://forum.syncthing.net/u/idef1x)
#### Post date: [May 16, 2015, 7:50pm UTC](https://forum.syncthing.net/t/why-does-rename-move-put-file-s-in-stversions-dir/2757/3 "2015-05-16T19:50:30Z")

</div>

That’s what I already mentioned 😉

---

<div class="post-metadata">

### Author: ![Alex](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@Alex](https://forum.syncthing.net/u/Alex)
#### Post date: [May 16, 2015, 8:29pm UTC](https://forum.syncthing.net/t/why-does-rename-move-put-file-s-in-stversions-dir/2757/4 "2015-05-16T20:29:24Z")

</div>

It’s probably like this because in the beginning there was nothing like a rename in syncthing, it was a delete on the source dir and a new file on the target dir. For versioning it looks like syncthing still handles it like this.

This could probably be fixed by replacing `archive` [here](https://github.com/syncthing/syncthing/blob/65be18cc93aeca4c60cd87a1228c5593e4b908db/internal/model/rwfolder.go#L726) by something that moves the existing versions to the corresponding target in the version folder.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [May 19, 2015, 7:30pm UTC](https://forum.syncthing.net/t/why-does-rename-move-put-file-s-in-stversions-dir/2757/5 "2015-05-19T19:30:01Z")

</div>

The file, under the name you knew it, is gone. An identical copy may exist somewhere else, but that’s slightly beside the point - especially as that copy may be modified in the near future, and you may not have been the one doing the rename to start with.

Or, shorter, _meh_. It could go either way, and this is one way to do it.

---

<div class="post-metadata">

### Author: ![crispyduck](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@crispyduck](https://forum.syncthing.net/u/crispyduck)
#### Post date: [November 11, 2020, 1:19pm UTC](https://forum.syncthing.net/t/why-does-rename-move-put-file-s-in-stversions-dir/2757/6 "2020-11-11T13:19:15Z")

</div>

Hi, is there any way to archive that moved files are not copied to .stversions?

I want to archive that only deleted or maybe also renamed files will go to the .stversion folder.

As in my environment I have to move files often from one directory to another directory I don’t want to get a copy of the same in file each time I only move it to another location within the same folder created in .stversions.

I also checked the external version script option, but seems this will also not work as syncthing sees a move always as copy + delete of the file in the old location.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [November 11, 2020, 1:32pm UTC](https://forum.syncthing.net/t/why-does-rename-move-put-file-s-in-stversions-dir/2757/7 "2020-11-11T13:32:53Z")

</div>

The above answer still stands.

---

<div class="post-metadata">

### Author: ![crispyduck](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@crispyduck](https://forum.syncthing.net/u/crispyduck)
#### Post date: [November 12, 2020, 6:22pm UTC](https://forum.syncthing.net/t/why-does-rename-move-put-file-s-in-stversions-dir/2757/8 "2020-11-12T18:22:26Z")

</div>

I did not ask why, I asked if there is a way to get a different bahviour!

So I guess your answer means also: no there is no way. 🙂
