purplestone / vscode-saveBackup

This is a vscode extension for backup file when you save.
8 stars 6 forks source link

backup folder #5

Open lhenry2k opened 4 years ago

lhenry2k commented 4 years ago

I believe that concatenating all subfolders of the file path with underscore into a single folder is barely readable and pretty messy, especially if you work in different projects.

recreating all subfolders tree in the backup folder should be the only way to go , and this opens great insight possibility to easily understand where you do work the most (just think what can you know if you run a treeMap on the backup root)

thank you for considering this !

purplestone commented 4 years ago

在最初设计时,有在 flatMap 与 treeMap 之间做了选择,为了能在文件管理器中更便捷的按时间或文件名进行排序并快速的找到备份,I feel flatMap 更好一些。关于目录数量太大问题,只能靠用户自己定期清理来解决,不过我可以考虑增加这一特性在设置里选择 In the initial design, there was a choice between flatMap and treeMap. In order to make it easier to sort by time or file name in the file manager and quickly find the backup, I feel flatMap is better. The problem of too many directories can only be solved by the user's own regular cleaning, but I can consider adding this feature to select in the settings.

lhenry2k commented 4 years ago

if it's faster, would be really useful to change the underscore you do use in file name (representing slashes in the path). this permits to recreate very easily the original files/folders structure with an external script. tnx