dat-ecosystem / dat

:floppy_disk: peer-to-peer sharing & live syncronization of files via command line
https://dat.foundation
BSD 3-Clause "New" or "Revised" License
8.24k stars 449 forks source link

Renaming a folder within a dat creates duplicate files #1046

Open makew0rld opened 5 years ago

makew0rld commented 5 years ago

I am reporting:

makew0rld commented 5 years ago

I understand this might be because of how dat is an append-only log. So then I would say then that it might be nice to see a feature where renaming an internal folder doesn't result in duplicates of everything in that folder, which seems a little bit wasteful. The same goes for renaming files, maybe there's a way to store a rename event, rather then store a whole new file or folder of files in the history.

pfrazee commented 5 years ago

If you do a dat clone of the folder to another directory, do you see the duplicates?

Dat uses an append-only log but that's for the change history. That doesn't mean it's impossible to delete files. If a rename isn't taking effect then something is going wrong in the file-tree diffing algorithm.